![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2001 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: ifSetSubordinateOrder.h,v $ $Revision: 1.4 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #ifndef DtIfSetSubordinateOrder_H_ 00013 #define DtIfSetSubordinateOrder_H_ 00014 00015 #include <vector> 00016 00017 #include <vrfExtProtocol/ifaceCont.h> 00018 #include <vl/hostStructs.h> 00019 #include <vlpi/NetStructs.h> 00020 00023 struct DtNetIfSetSubordinateOrder 00024 { 00025 DtNetEntityIdentifier mySuperiorId; 00026 DtNetU16 myNumSubordinates; 00027 DtNetU16 myPadding1; 00028 DtNetU32 myPadding2; 00029 }; 00030 00041 #include "vrfmsgs/vrfmsgsDefines.h" 00042 class DT_DLL_vrfmsgs DtIfSetSubordinateOrder : public DtSimInterfaceContent 00043 { 00044 public: 00045 00047 DtIfSetSubordinateOrder(); 00048 00050 virtual ~DtIfSetSubordinateOrder(); 00051 00053 DtIfSetSubordinateOrder(const DtIfSetSubordinateOrder& orig); 00054 00056 DtIfSetSubordinateOrder& operator=(const DtIfSetSubordinateOrder& orig); 00057 00059 virtual DtSimInterfaceContent * clone() const; 00060 00063 virtual int type() const; 00064 00067 virtual void setSuperiorId(const DtEntityIdentifier & objectIdentifier); 00068 virtual const DtEntityIdentifier & superiorId() const; 00069 00070 virtual void setSubordinateOrderedList(const std::vector<DtEntityIdentifier>& orderedList); 00071 virtual const std::vector<DtEntityIdentifier>& subordinateOrderedList() const; 00072 00073 virtual int netRepSize() const; 00074 virtual bool setFromNet(const char* contentBuffer, 00075 unsigned contentSize); 00076 virtual bool setToNet(); 00077 00078 virtual void printDataToString(DtString& str); 00079 00080 static DtSimInterfaceContent* creator(); 00081 00082 protected: 00083 00084 DtEntityIdentifier mySuperiorId; 00085 std::vector<DtEntityIdentifier> mySubordinateOrderedList; 00086 }; 00087 00088 #endif 00089