VR-Forces 4.0.4 Class Documentation
include/vrfutil/ceSurrender.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: ceSurrender.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef DtCeSurrenderOperator_H_
00013 #define DtCeSurrenderOperator_H_
00014 
00015 #include "vrfutil/condExpr.h"
00016 #include "vrfutil/rwBoolean.h"
00017 #include "vrfutil/rwString.h"
00018 
00019 const char DtCeSurrenderTypeName[] = "Surrender";
00020 
00023 struct DtNetCeSurrender
00024 {
00025    DtNetBoolean mySurrenderVal;      
00026    DtNetU8 myEntityNameStringLength; 
00027    DtNetU8 myModifierStringLength;   
00028    DtNetU8 myPadding[5];             
00029 
00030 
00031 };
00032    
00039 
00040 #include "vrfutil/vrfutilDefines.h"
00041 class DT_DLL_vrfutil DtCeSurrender : public DtSimCondExpr
00042 {
00043 public:
00044 
00046    DtCeSurrender();
00047 
00049    DtCeSurrender(DtReaderWriterRegistry* parentRegistry);
00050 
00052    DtCeSurrender(const DtCeSurrender& orig,
00053       DtReaderWriterRegistry* parentRegistry = NULL);
00054 
00056    virtual ~DtCeSurrender();
00057 
00059    DtCeSurrender& operator=(const DtCeSurrender& orig);
00060 
00062    virtual DtSimCondExpr* clone(
00063       DtReaderWriterRegistry* parentRegistry = NULL);
00064 
00066    virtual int type() const;
00067 
00069    virtual void setEntityName(const DtString& name);
00070    virtual const DtString& entityName() const;
00071 
00078    virtual void setModifier(const DtString& arg);
00079    virtual const DtString& modifier() const;
00080 
00082    virtual void setSurrenderTestValue(DtBoolean yesNo);
00083    virtual DtBoolean surrenderTestValue() const;
00084 
00094    virtual DtString stringRep(int subExprIndex = DtSR_EXPR) const;
00095 
00098    virtual int netRepSize() const;
00099 
00101    virtual bool setFromNet(const char* contentBuffer, 
00102       unsigned contentSize);
00103 
00106    virtual bool setToNet();
00107 
00108    static DtSimCondExpr * creator();
00109 
00110 protected:
00111    DtRwString myEntityName;
00112    DtRwString myModifier;
00113    DtRwBoolean mySurrenderVal;
00114 };
00115 
00116 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)