![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 1999 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: ifPlan.h,v $ $Revision: 1.26 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #ifndef DtIfPlan_H_ 00013 #define DtIfPlan_H_ 00014 00015 #include <vlutil/vlString.h> 00016 #include <vrfExtProtocol/ifaceCont.h> 00017 #include <vlutil/vlNetTypes.h> 00018 #include <vlutil/vlList.h> 00019 #include "vrfplan/simStmt.h" 00020 00021 class DtPlan; 00022 class DtSimBlock; 00023 class DtSimStatement; 00024 00025 struct DtNetIfPlan 00026 { 00027 DtNetU8 myStatementCount; 00028 DtNetU8 myPadding0; 00029 DtNetU8 myNameLength; 00030 DtNetBoolean myPadding1; 00031 DtNetBoolean myAssign; 00032 DtNetU8 myIsGlobal; 00033 DtNetU8 myPadding2; 00034 DtNetU8 myPadding3; 00035 }; 00037 00059 00073 00074 #include "vrfmsgs/vrfmsgsDefines.h" 00075 class DT_DLL_vrfmsgs DtIfPlan : public DtSimInterfaceContent 00076 { 00077 public: 00078 00080 DtIfPlan(); 00081 00083 virtual ~DtIfPlan(); 00084 00086 DtIfPlan(const DtIfPlan& orig); 00087 00089 DtIfPlan& operator=(const DtIfPlan& orig); 00090 00092 virtual int type() const; 00093 00094 virtual DtSimInterfaceContent * clone() const; 00095 00100 virtual const DtString & name() const; 00101 virtual void setName(const DtString & name); 00102 00105 00106 virtual bool isGlobal() const; 00107 virtual void setIsGlobal(bool yesNo); 00109 00117 virtual bool addStatement(const DtSimStatement& statement); 00118 00120 virtual const DtList& statements() const; 00121 00126 virtual void setAssign(bool flag); 00127 virtual bool assign() const; 00128 00132 virtual int netRepSize() const; 00133 00135 virtual bool setFromNet(const char* contentBuffer, 00136 unsigned contentSize); 00137 00140 virtual bool setToNet(); 00141 00142 virtual void printDataToString(DtString& str); 00143 00144 static DtSimInterfaceContent* creator(); 00145 00148 void emptyStatementList(); 00149 00151 virtual bool isSamePlan(DtIfPlan* rhs); 00152 00155 virtual const char* restoreName(const char* contentBuffer); 00156 00159 virtual char* setNameToNet(); 00160 00161 protected: 00162 00166 void copyStatementList(const DtList& otherList); 00167 00168 protected: 00169 00170 mutable DtString myName; 00171 00174 DtList myStatementList; 00175 00177 bool myAppendFlag; 00178 00181 bool myAssignFlag; 00182 00183 bool myIsGlobal; 00184 }; 00185 00186 #endif