VR-Forces 4.0.4 Class Documentation
include/vrfmsgs/ifPlanCurStmt.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1999 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: ifPlanCurStmt.h,v $ $Revision: 1.18 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef DtIfPlanCurStatement_H_
00013 #define DtIfPlanCurStatement_H_
00014 
00015 #include <vlutil/vlString.h>
00016 
00017 #include <vrfExtProtocol/ifaceCont.h>
00018 
00019 #include <vlutil/vlNetTypes.h>
00020 
00021 class DtPlan;
00022 
00023 
00026 struct DtNetIfPlanCurStatement
00027 {
00028    DtNetU8        myIsGlobal;                   //1 byte  (was echelonIdLength)
00029    DtNetU8        myNameLength;                 //1 byte
00030    DtNetBoolean   myIsComplete;                 //1 byte
00031    DtNetU16       myCurrentStmtId;              //2 bytes
00032    DtNetBoolean   myIsExecuting;                //1 byte
00033    DtNetBoolean   myIsAbandoned;                //1 byte
00034    DtNetU8        myPadding1;                   //1 bytes
00035 };                              
00036 
00057 #include "vrfmsgs/vrfmsgsDefines.h"
00058 class DT_DLL_vrfmsgs DtIfPlanCurStatement : public DtSimInterfaceContent
00059 {
00060 public:
00061 
00063    DtIfPlanCurStatement();
00064 
00066    DtIfPlanCurStatement(const DtIfPlanCurStatement& orig);
00067 
00069    virtual ~DtIfPlanCurStatement();
00070 
00072    DtIfPlanCurStatement& operator=(const DtIfPlanCurStatement& orig);
00073 
00075    virtual int type() const;
00076 
00078    virtual DtSimInterfaceContent* clone() const;
00079 
00081    virtual const DtString& name() const;
00083    virtual void setName(const DtString& name);
00084 
00086 
00087    virtual bool isGlobal() const;
00088    virtual void setIsGlobal(bool value);
00090 
00092    virtual int currentStmtId() const;
00094    virtual void setCurrentStmtId(int arg);
00095 
00097    virtual bool isComplete() const;
00099    virtual void setIsComplete(bool arg);
00100 
00102 
00103    virtual bool isExecuting() const;
00104    virtual void setIsExecuting(bool b);
00106 
00108 
00109    virtual bool isAbandoned() const;
00110    virtual void setIsAbandoned(bool b);
00112 
00115    virtual int netRepSize() const;
00116 
00118    virtual bool setFromNet(const char* contentBuffer, 
00119       unsigned contentSize);
00120 
00123    virtual bool setToNet();
00124 
00125    virtual void printDataToString(DtString& str);
00126 
00127    static DtSimInterfaceContent* creator();
00128 
00129 protected:
00131    DtString myName;
00132 
00134    int myCurrentStmtId;
00135    
00137    bool myIsComplete;
00138    bool myIsGlobal;
00139 
00140    bool myExecuting;
00141    bool myIsAbandoned;
00142 };
00143 
00144 #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)