AaronCameron.net
Because you all make me very, very tired.
Not a Member? - Login or Create an Account
Wednesday the 23rd of May 2012 @ 09:01am
Front Page Journal Projects Your Profile About
[]

LibN2L-4 Library Code Reference

Classes
Compounds
Files
Members
Method Index
Full Reference

cGuiACIfProp.h

Go to the documentation of this file.
00001 #ifndef _n2l4_cGuiACIfProp_h
00002 #define _n2l4_cGuiACIfProp_h
00003 
00004 #include "n2l/n2l.h"
00005 #include "n2l/gui.h"
00006 #include "n2l/dynVars.h"
00007 
00008 /******************************************************************************/
00009 namespace n2l
00010 {
00011     class cGuiACIfProp : public cGuiACInt
00012     {
00013     public:
00014         cGuiACIfProp( const cDynVar &iDef );
00015         virtual ~cGuiACIfProp();
00016 
00017         virtual void load( const cDynVar &iDef );
00018 
00019         // We're preserved so long as we have children.
00020         virtual const tBool preserveAction() const;
00021 
00022         virtual void execute( cGuiElement *const ioElement,
00023             const tGuiActionType iType, const cDynVar &iData );
00024 
00025         virtual const cAutoPtr<cGuiACInt> clone() const;
00026 
00027     protected:
00028         virtual void cloneInto(
00029             const cAutoPtr<cGuiACIfProp> &ioElement ) const;
00030 
00031     private:
00032         typedef enum {
00033             Op_Equals,
00034             Op_GreaterThan,
00035             Op_LessThan,
00036             Op_Not,
00037 
00038             Op_NumOps
00039         } tOp;
00040 
00041         tString mElement;
00042         tOp mOp;
00043         tString mKey;
00044         tString mInnerKey;
00045         cDynVar mValue;
00046 
00047         cAutoPtr<cGuiACInt> mAction;
00048         cAutoPtr<cGuiACInt> mElseAction;
00049 
00050         cGuiACIfProp();
00051 
00052         void init();
00053     };
00054 
00055 }
00056 
00057 #endif
©2012 Aaron Cameron