VR-Forces 4.0.4 Class Documentation
include/vrfmsgs/ifPlanStmt.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2003 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: ifPlanStmt.h,v $ $Revision: 1.19 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef DtIfPlanStatement_H_
00013 #define DtIfPlanStatement_H_
00014 
00015 #include <vlutil/vlString.h>
00016 
00017 #include <vrfExtProtocol/ifaceCont.h>
00018 #include <vlutil/vlNetTypes.h>
00019 
00020 class DtSimStatement;
00021 
00022 
00032 struct DtNetIfPlanStatement
00033 {
00034    DtNetU16    myStatementType;
00035    DtNetU16    myStatementId;
00036    DtNetU16    myStatementSize;
00037    DtNetU8     myNameLength;
00038    DtNetU8     myIsGlobal;
00039 };
00040 
00059 #include "vrfmsgs/vrfmsgsDefines.h"
00060 class DT_DLL_vrfmsgs DtIfPlanStatement : public DtSimInterfaceContent
00061 {
00062 public:
00063 
00065    DtIfPlanStatement();
00066 
00068    virtual ~DtIfPlanStatement();
00069 
00071    DtIfPlanStatement(const DtIfPlanStatement& orig);
00072 
00074    DtIfPlanStatement& operator=(const DtIfPlanStatement& orig);
00075 
00076    virtual int type() const;
00077 
00078    virtual DtSimInterfaceContent * clone() const;
00079 
00081    virtual const DtString & name() const;
00082    virtual void setName(const DtString & name);
00083 
00085    virtual int statementId() const;
00086    virtual void setStatementId(int id);
00087 
00090    virtual DtSimStatement* statement() const;
00091    virtual void setStatement(DtSimStatement* statement);
00092 
00095 
00096    virtual bool isGlobal() const;
00097    virtual void setIsGlobal(bool yesNo);
00099 
00100    virtual int netRepSize() const;
00101    virtual bool setFromNet(const char* contentBuffer, 
00102       unsigned contentSize);
00103    virtual bool setToNet();
00104 
00105    virtual void printDataToString(DtString& str);
00106 
00107    static DtSimInterfaceContent* creator();
00108 
00109 protected:
00110 
00111    DtString myName;
00112    bool myIsGlobal;
00113    int myStatementId;
00114 
00115    DtSimStatement* myStatement;
00116 };
00117 
00118 #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)