MAK RTIspy API Documentation for HLA 1.3
deleteRoMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: deleteRoMsg.h,v $ $Revision: 1.10 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtDeleteRoMsg_H_
13 #define DtDeleteRoMsg_H_
14 
15 #include "deleteMsg.h"
16 #include "netDeleteMsg.h"
17 
18 class DtDeleteRoMsg;
19 typedef void (*DtDeleteRoCb)(const DtDeleteRoMsg& inter, void* usr);
20 
24 {
25 public:
26 
28  DtDeleteRoMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
29 
33 #ifdef DtIFSPEC1516
34  rti1516::VariableLengthData const& theTag,
35 #elif defined(DtIFSPEC1516E)
36  rti1516e::VariableLengthData const& theTag,
37 #else
38  char const * theTag,
39 #endif
40  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
41 
43  DtDeleteRoMsg(const DtNetDeleteMsg* netRepMsg,
44  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
45 
47  virtual ~DtDeleteRoMsg();
48 
50  virtual DtRtiMsg* clone(bool copy = true) const;
51 
53  virtual void set(DtObjectInstanceHandle theObj,
54 #ifdef DtIFSPEC1516
55  rti1516::VariableLengthData const& theTag);
56 #elif defined(DtIFSPEC1516E)
57  rti1516e::VariableLengthData const& theTag);
58 #else
59  char const * theTag);
60 #endif
61 
63  virtual void setId(DtObjectInstanceHandle id);
64  virtual DtObjectInstanceHandle id() const;
65 
67  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
68 
69 public:
70 
72  static DtRtiMsg* create(const DtNetMsgHeader* initial,
73  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
74 
76  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
77 
79  static void addCallback(DtConnectionMgr *conn,
80  DtDeleteRoCb cb, void *usr);
81  static void removeCallback(DtConnectionMgr *conn,
82  DtDeleteRoCb cb, void *usr);
83 
84 protected:
85 
87  virtual DtNetDeleteMsg* netDeleteRoMsg();
88  virtual const DtNetDeleteMsg* netDeleteRoMsg() const;
89 
92 
94 #ifdef DtIFSPEC1516
95  virtual int minSize(rti1516::VariableLengthData const& theTag) const;
96 #elif defined(DtIFSPEC1516E)
97  virtual int minSize(rti1516e::VariableLengthData const& theTag) const;
98 #else
99  virtual int minSize(char const * theTag=NULL) const;
100 #endif
101 
103  virtual void setTagSize(int size);
104  virtual int tagSize() const;
105 
107  virtual char* tagPtr();
108 
110  virtual DtDeleteRoMsg* selfRo() const;
111 };
112 
113 
115 {
116  return (DtDeleteRoMsg*) this;
117 }
118 
119 #endif
120 

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)