Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

EXP_C-Api.h

Go to the documentation of this file.
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 /* calculate expression from inputtext */
00020 extern EXP_ValueHandle          EXP_ParseInput(const char* inputtext);
00021 extern void                                     EXP_ReleaseValue(EXP_ValueHandle);
00022 extern int                                      EXP_IsValid(EXP_ValueHandle);
00023 /* assign property 'propval' to 'destinationval' */
00024 extern void                                     EXP_SetProperty(EXP_ValueHandle propval,EXP_ValueHandle destinationval);
00025 
00026 /* returns NULL if property doesn't exist */
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

Generated at Thu Feb 1 13:03:02 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000