Institut de Robòtica i Informàtica Industrial
KRD Group

The CuikSuite Project

variable.h

Go to the documentation of this file.
00001 #ifndef VARIABLEH
00002 #define VARIABLEH
00003 
00004 #include "interval.h"
00005 
00016 /************************************************************************************/
00024 #define SYSTEM_VAR     1
00025 
00026 /************************************************************************************/
00044 #define SECONDARY_VAR     2
00045 
00053 #define DUMMY_VAR      4
00054 
00062 #define CARTESIAN_VAR  8
00063 
00068 #define NOTYPE_VAR    16
00069 /************************************************************************************/
00070 
00078 typedef struct
00079 {
00080   unsigned int type; 
00081   char *name; 
00082   Tinterval is; 
00083 } Tvariable;
00084 
00094 void NewVariable(unsigned int type,char *name,Tvariable *v);
00095 
00104 void CopyVariable(Tvariable *v_dst,Tvariable *v_src);
00105 
00106 
00116 unsigned int GetVariableType(Tvariable *v);
00117 
00127 char *GetVariableName(Tvariable *v);
00128 
00138 void SetVariableInterval(Tinterval *i,Tvariable *v);
00139 
00149 Tinterval *GetVariableInterval(Tvariable *v);
00150 
00159 void PrintVariableName(FILE *f,Tvariable *v);
00160 
00169 void PrintVariable(FILE *f,Tvariable *v);
00170 
00178 void DeleteVariable(Tvariable *v);
00179 
00180 #endif