TORCS  1.3.9
The Open Racing Car Simulator
param Struct Reference

Parameter header structure, a parameter can either carry a numeric or a string value, numeric value is constraint by min and max, string value by options in within. More...

Public Member Functions

 GF_TAILQ_ENTRY (struct param) linkParam
 Next parameter in the same section. More...
 

Public Attributes

char * name
 Name of the parameter. More...
 
char * fullName
 Name of the parameter including the full section name ('/' separated) More...
 
char * value
 String value of the parameter. More...
 
tdble valnum
 Numeric value of the parameter. More...
 
int type
 Type, either P_NUM or P_STR. More...
 
char * unit
 Unit, see GfParmUnit2SI for supported units. More...
 
tdble min
 Minimum for numeric value. More...
 
tdble max
 Maximum for numeric value. More...
 
struct withinHead withinList
 Linked list containing the options for legal string values. More...
 

Detailed Description

Parameter header structure, a parameter can either carry a numeric or a string value, numeric value is constraint by min and max, string value by options in within.

See also
GfParmUnit2SI

Definition at line 63 of file params.cpp.

Member Function Documentation

◆ GF_TAILQ_ENTRY()

param::GF_TAILQ_ENTRY ( struct param  )

Next parameter in the same section.

Member Data Documentation

◆ fullName

char* param::fullName

Name of the parameter including the full section name ('/' separated)

Definition at line 66 of file params.cpp.

◆ max

tdble param::max

Maximum for numeric value.

Definition at line 72 of file params.cpp.

◆ min

tdble param::min

Minimum for numeric value.

Definition at line 71 of file params.cpp.

◆ name

char* param::name

Name of the parameter.

Definition at line 65 of file params.cpp.

◆ type

int param::type

Type, either P_NUM or P_STR.

Definition at line 69 of file params.cpp.

◆ unit

char* param::unit

Unit, see GfParmUnit2SI for supported units.

Definition at line 70 of file params.cpp.

◆ valnum

tdble param::valnum

Numeric value of the parameter.

Definition at line 68 of file params.cpp.

◆ value

char* param::value

String value of the parameter.

Definition at line 67 of file params.cpp.

◆ withinList

struct withinHead param::withinList

Linked list containing the options for legal string values.

Definition at line 73 of file params.cpp.


The documentation for this struct was generated from the following file: