![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: ifAddToOrg.h,v $ $Revision: 1.11 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #ifndef DtIfAddToOrganization_H_ 00013 #define DtIfAddToOrganization_H_ 00014 00015 #include <vrfExtProtocol/ifaceCont.h> 00016 #include <vlutil/vlString.h> 00017 #include <vl/hostStructs.h> 00018 #include <vlpi/NetStructs.h> 00019 00020 00023 struct DtNetIfAddToOrganization 00024 { 00025 DtNetEntityIdentifier myObjectIdentifier; 00026 DtNetEntityIdentifier myNewSuperiorId; 00027 DtNetInt8 myDesignator; 00028 DtNetBoolean mySuperiorIsForce; 00029 }; 00030 00038 #include "vrfmsgs/vrfmsgsDefines.h" 00039 class DT_DLL_vrfmsgs DtIfAddToOrganization : public DtSimInterfaceContent 00040 { 00041 public: 00042 00044 DtIfAddToOrganization(); 00045 00047 virtual ~DtIfAddToOrganization(); 00048 00050 DtIfAddToOrganization(const DtIfAddToOrganization& orig); 00051 00053 DtIfAddToOrganization& operator=(const DtIfAddToOrganization& orig); 00054 00057 virtual int type() const; 00058 00062 virtual void setObjectIdentifier(const DtEntityIdentifier & objectIdentifier); 00063 virtual const DtEntityIdentifier & objectIdentifier() const; 00064 00067 virtual void setNewSuperiorId(const DtEntityIdentifier & superiorId); 00068 virtual const DtEntityIdentifier & newSuperiorId() const; 00069 00076 virtual void setSuperiorIsForce(bool isForce); 00077 virtual bool superiorIsForce() const; 00078 00080 virtual void setDesignator(DtInt8 pos); 00081 virtual DtInt8 designator() const; 00082 00083 virtual int netRepSize() const; 00084 virtual bool setFromNet(const char* contentBuffer, 00085 unsigned contentSize); 00086 virtual bool setToNet(); 00087 00088 virtual void printDataToString(DtString& str); 00089 00090 DtSimInterfaceContent * clone() const; 00091 00092 static DtSimInterfaceContent* creator(); 00093 00094 protected: 00095 00096 DtEntityIdentifier myObjectIdentifier; 00097 DtEntityIdentifier myNewSuperiorId; 00098 DtInt8 myDesignator; 00099 bool mySuperiorIsForce; 00100 }; 00101 00102 #endif 00103