torcs - 1.2.0

Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

torcs/src/libs/tgf/params.h

00001 /***************************************************************************
00002 
00003     file                 : params.h
00004     created              : Mon Jan 31 22:19:04 CET 2000
00005     copyright            : (C) 2000 by Eric Espie
00006     email                : torcs@free.fr
00007     version              : $Id: params.h,v 1.1.1.1 2001/06/24 18:29:39 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 _PARAMS_H_
00022 #define _PARAMS_H_
00023 
00024 #define BUFMAX  1024
00025 
00026 /* Internal structures for parameters management */
00027 
00028 #define PARM_NODE_ROOT  0x01
00029 #define PARM_NODE_PARM  0x02
00030 #define PARM_NODE_SECT  0x04
00031 #define PARM_NODE_KEY   0x10
00032 
00033 #define PARM_NODE_BRANCH        0x0F
00034 
00035 typedef struct ParmWithin {
00036     char                *val;
00037     struct ParmWithin   *next;
00038 } tParmWithin;
00039 
00040 typedef struct ParmNode {
00041     struct ParmNode     *next;
00042     struct ParmNode     *prev;
00043     struct ParmNode     *kids;
00044     struct ParmNode     *parent;
00045     int                 type;
00046     char                *name;
00047 } tParmNode;
00048 
00049 typedef struct ParmKey {
00050     tParmNode           n;
00051 
00052     int                 type;
00053 #define P_NUM 0
00054 #define P_STR 1
00055     char                *valstr;
00056     tdble               valnum;
00057     tdble               min;
00058     tdble               max;
00059     struct ParmWithin   *withins;
00060 } tParmKey;
00061 
00062 typedef struct ParmSect {
00063     tParmNode           n;
00064     tParmNode           *current;
00065 } tParmSect;
00066 
00067 typedef struct Parm {
00068     tParmNode           n;
00069     char                *file;
00070     int                 type;
00071     int                 mode;
00072     int                 refcount;
00073 } tParm;
00074 
00075 
00076 #endif /* _PARAMS_H_ */ 
00077 
00078 
00079 

Generated at Fri Apr 4 00:29:54 2003 for torcs by doxygen 1.3-rc1 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.