VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ifVrfObjectDeleted.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: ifVrfObjDeltd.h,v $ $Revision: 1.7 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef DtIfVrfObjectDeleted_H_
10 #define DtIfVrfObjectDeleted_H_
11 
13 #include <vlutil/vlString.h>
14 #include <vl/hostStructs.h>
15 #include <vlpi/netStructs.h>
16 
17 // This is the *FIXED* length portion of a DtIfVrfObjectDeleted message
18 // content when placed on the network.
20 {
21  DtNetEntityIdentifier myObjectIdentifier;// 48
22 }; // Total: 48 bytes
23 
24 // class DtIfVrfObjectDeleted:
25 //
26 // Instances of DtIfVrfObjectDeleted are the message content for vrf object
27 // deleted messages. These messages are sent by the vrf process responsible
28 // for locally simulating the object to be deleted. The message indicates
29 // that all other vrf processes should delete their remote version of
30 // the this object.
31 //
32 // Content-Type: DtVrfObjectDeletedMessageType
33 //
36 {
37 public:
38 
39  // default constructor
41 
42  // destructor
43  virtual ~DtIfVrfObjectDeleted();
44 
45  // copy constructor
47 
48  // assignment operator
50 
51  // Returns a newly created instance of a DtIfVrfObjectDeleted.
52  virtual DtSimInterfaceContent * clone() const;
53 
54  // Returns the string type of message, DtDeleteVrfObjectMessageType (defined
55  // in msgTypes.h).
56  virtual int type() const;
57 
58  // Set/get the object identifier (site:app:object id) of the vrf object.
59  // Corresponds to entity identifier for individual entities, aggregate Id
60  // for aggregates, and object identifier for environmental process objects.
61  virtual void setObjectIdentifier(const DtEntityIdentifier & objectIdentifier);
62  virtual const DtEntityIdentifier & objectIdentifier() const;
63 
64  virtual int netRepSize() const;
65  virtual bool setFromNet(const char* contentBuffer,
66  unsigned contentSize);
67  virtual bool setToNet();
68 
69  virtual void printDataToString(DtString& str);
70 
71  static DtSimInterfaceContent* creator();
72 
73 protected:
74 
75  DtEntityIdentifier myObjectIdentifier;
76 };
77 
78 #endif
79 
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Definition: simInterfaceContent.h:78
virtual int netRepSize() const
Definition: simInterfaceContent.h:76
DtNetEntityIdentifier myObjectIdentifier
Definition: ifVrfObjectDeleted.h:21
virtual int type() const =0
virtual void printDataToString(DtString &str)
Definition: ifVrfObjectDeleted.h:19
const DtSimInterfaceContent & operator=(const DtSimInterfaceContent &orig)
DtEntityIdentifier myObjectIdentifier
Definition: ifVrfObjectDeleted.h:75
Definition: ifVrfObjectDeleted.h:35
#define DT_DLL_vrfExtProtocol
Definition: vrfExtProtocolDefines.h:23
virtual bool setToNet()
Definition: simInterfaceContent.h:83
Definition: simInterfaceContent.h:45
virtual DtSimInterfaceContent * clone() const =0

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)