torcs - 1.2.2

src/interfaces/telemetry.h

Go to the documentation of this file.
00001 /***************************************************************************
00002 
00003     file                 : telemetry.h
00004     created              : Sun Jan 30 22:59:54 CET 2000
00005     copyright            : (C) 2000 by Eric Espie
00006     email                : torcs@free.fr
00007     version              : $Id: telemetry.h,v 1.2 2002/11/30 19:00:50 torcs Exp $
00008 
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *   This program is free software; you can redistribute it and/or modify  *
00014  *   it under the terms of the GNU General Public License as published by  *
00015  *   the Free Software Foundation; either version 2 of the License, or     *
00016  *   (at your option) any later version.                                   *
00017  *                                                                         *
00018  ***************************************************************************/
00019  
00020  
00021 #ifndef _TELEMETRY_H_
00022 #define _TELEMETRY_H_
00023 
00024 #define TLM_IDENT       1
00025 
00026 #include <tgf.h>
00027 
00028 typedef void(*tftlmInit)(tdble /* ymin */, tdble /* ymax */);
00029 typedef void(*tftlmNewChannel)(const char * /* name */, tdble * /* var */, tdble /* min */, tdble /* max */);
00030 typedef void(*tftlmStartMonitoring)(const char * /* filename */);
00031 typedef void(*tftlmStopMonitoring)(void);
00032 typedef void(*tftlmUpdate)(double /* time */);
00033 typedef void(*tftlmShutdown)(void);
00034 
00035 
00036 typedef struct 
00037 {
00038     tftlmInit                   init;                   /* Init the telemetry */
00039     tftlmNewChannel             newChannel;             /* Create a new channel */
00040     tftlmStartMonitoring        startMonitoring;        /* Start monitoring */
00041     tftlmStopMonitoring         stopMonitoring;         /* Stop monitoring */
00042     tftlmUpdate                 update;                 /* Update telemetry */
00043     tftlmShutdown               shutdown;               /* close the telemetry */
00044 } tTelemItf;
00045 
00046 
00047 
00048 #endif /* _TELEMETRY_H_ */ 
00049 
00050 
00051 

Generated at Thu Feb 26 21:52:27 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.