![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: ifVrfObjDeltd.h,v $ $Revision: 1.7 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00009 #ifndef DtIfVrfObjectDeleted_H_ 00010 #define DtIfVrfObjectDeleted_H_ 00011 00012 #include <vrfExtProtocol/ifaceCont.h> 00013 #include <vlutil/vlString.h> 00014 #include <vl/hostStructs.h> 00015 #include <vlpi/NetStructs.h> 00016 00017 // This is the *FIXED* length portion of a DtIfVrfObjectDeleted message 00018 // content when placed on the network. 00019 struct DtNetIfVrfObjectDeleted 00020 { 00021 DtNetEntityIdentifier myObjectIdentifier;// 48 00022 }; // Total: 48 bytes 00023 00024 // class DtIfVrfObjectDeleted: 00025 // 00026 // Instances of DtIfVrfObjectDeleted are the message content for vrf object 00027 // deleted messages. These messages are sent by the vrf process responsible 00028 // for locally simulating the object to be deleted. The message indicates 00029 // that all other vrf processes should delete their remote version of 00030 // the this object. 00031 // 00032 // Content-Type: DtVrfObjectDeletedMessageType 00033 // 00034 #include <vrfExtProtocol/vrfExtProtocolDefines.h> 00035 class DT_DLL_vrfExtProtocol DtIfVrfObjectDeleted : public DtSimInterfaceContent 00036 { 00037 public: 00038 00039 // default constructor 00040 DtIfVrfObjectDeleted(); 00041 00042 // destructor 00043 virtual ~DtIfVrfObjectDeleted(); 00044 00045 // copy constructor 00046 DtIfVrfObjectDeleted(const DtIfVrfObjectDeleted& orig); 00047 00048 // assignment operator 00049 DtIfVrfObjectDeleted& operator=(const DtIfVrfObjectDeleted& orig); 00050 00051 // Returns a newly created instance of a DtIfVrfObjectDeleted. 00052 virtual DtSimInterfaceContent * clone() const; 00053 00054 // Returns the string type of message, DtDeleteVrfObjectMessageType (defined 00055 // in msgTypes.h). 00056 virtual int type() const; 00057 00058 // Set/get the object identifier (site:app:object id) of the vrf object. 00059 // Corresponds to entity identifier for individual entities, aggregate Id 00060 // for aggregates, and object identifier for environmental process objects. 00061 virtual void setObjectIdentifier(const DtEntityIdentifier & objectIdentifier); 00062 virtual const DtEntityIdentifier & objectIdentifier() const; 00063 00064 virtual int netRepSize() const; 00065 virtual bool setFromNet(const char* contentBuffer, 00066 unsigned contentSize); 00067 virtual bool setToNet(); 00068 00069 virtual void printDataToString(DtString& str); 00070 00071 static DtSimInterfaceContent* creator(); 00072 00073 protected: 00074 00075 DtEntityIdentifier myObjectIdentifier; 00076 }; 00077 00078 #endif 00079