00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef TA_EXPRESSION_H
00013 #define TA_EXPRESSION_H
00014
00015 #ifndef TA_TYPES_H
00016 #include "Types.h"
00017 #endif // TA_TYPES_H
00018
00019 #ifndef TA_COMMON_H
00020 #include "Common.h"
00021 #endif // TA_COMMON_H
00022
00023 namespace TA
00024 {
00025
00026 class Serialiser;
00027
00028 class TACOMMON_CLASS Expression
00029 {
00030 public:
00031 Expression();
00032 ~Expression();
00033
00034 bool Initialise(const Char* szExpression);
00035 void Initialise(const Expression& that);
00036 void Finalise();
00037 void Serialise(Serialiser& serialiser);
00038
00039 float Evaluate(float *pInputList, int nNumInputs) const;
00040
00041 private:
00042 u32* m_pProgram;
00043 int m_nProgramSize;
00044
00045 };
00046
00047 };
00048
00049 #endif // __EXPRESSION
© Copyright 2004-2006 TRUE AXIS PTY LTD Australia. All rights reserved.