00001 #ifndef __EXPRESSION_INCLUDE
00002 #define __EXPRESSION_INCLUDE
00003
00004
00005 #define EXP_DECLARE_HANDLE(name) typedef struct name##__ { int unused; } *name
00006
00007 EXP_DECLARE_HANDLE(EXP_ValueHandle);
00008 EXP_DECLARE_HANDLE(EXP_ExpressionHandle);
00009
00010
00011 #ifdef __cplusplus
00012 extern "C" {
00013 #endif
00014
00015 extern EXP_ValueHandle EXP_CreateInt(int innie);
00016 extern EXP_ValueHandle EXP_CreateBool(int innie);
00017 extern EXP_ValueHandle EXP_CreateString(const char* str);
00018 extern void EXP_SetName(EXP_ValueHandle,const char* newname);
00019
00020 extern EXP_ValueHandle EXP_ParseInput(const char* inputtext);
00021 extern void EXP_ReleaseValue(EXP_ValueHandle);
00022 extern int EXP_IsValid(EXP_ValueHandle);
00023
00024 extern void EXP_SetProperty(EXP_ValueHandle propval,EXP_ValueHandle destinationval);
00025
00026
00027 extern EXP_ValueHandle EXP_GetProperty(EXP_ValueHandle inval,const char* propname);
00028
00029 const char* EXP_GetText(EXP_ValueHandle);
00030
00031 #ifdef __cplusplus
00032 }
00033 #endif
00034
00035 #endif //__EXPRESSION_INCLUDE