True Axis Physics SDK 1.2.0.1 Beta Documentation
www.trueaxis.com

Expression.h

00001 //---------------------------------------------------------------------------------
00002 // File Name: Expression.h
00003 // Description:
00004 //
00005 // Copyright (C) 2004 True Axis Pty Ltd, Australia. 
00006 // All Rights Reserved.
00007 //
00008 // History:
00009 //      Created File.
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.