MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assistantLightweightInfoMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: assistantLightweightInfoMsg.h,v $ $Revision: 1.7 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef DtAssistantLightweightInfoMsg_H_
10 #define DtAssistantLightweightInfoMsg_H_
11 
14 
15 #include <vlutil/vlString.h>
16 #include <vlutil/vlUtil.h>
17 #include <rtiUtil.h>
18 
20 #include "assistantLicServerInfo.h"
21 #include "assistantMsg.h"
24 
26 class DtRtiAssistantPeer;
28 
29 
30 typedef void (*DtAssistantLightweightInfoCb)(const DtAssistantLightweightInfoMsg& inter, void* usr);
31 
36 {
37 public:
38 
40  DtAssistantLightweightInfoMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
41 
43  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
44 
47 
49  virtual DtAssistantMsg* clone(bool copy = true) const;
50 
52  virtual void setLightweightConns(
53  const DtRtiConnectionAndConfiguration& lightweightConnections);
54  virtual void getLightweightConns(DtRtiConnectionAndConfiguration& lightweightConnections,
55  const MAKRti::DtInetAddr& networkInterfaceReceivedOn ) const;
56 
58  virtual unsigned int lightweightMemoryPeriod() const;
59  virtual void setLightweightMemoryPeriod(unsigned int interval);
60 
62  virtual void printData() const;
63 
64 public:
65 
67  static DtAssistantMsg* create(const DtNetAssistantMsgHeader* initial,
68  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
69 
70  static DtAssistantMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
71 
74  static void addCallback(DtRtiAssistantPeer* conn,
75  DtAssistantLightweightInfoCb cb, void* usr);
76  static void removeCallback(DtRtiAssistantPeer* conn,
77  DtAssistantLightweightInfoCb cb, void* usr);
78 
79 protected:
80 
82  virtual DtNetAssistantLightweightInfoMsg* netAssistantLightweightInfoMsg();
83  virtual const DtNetAssistantLightweightInfoMsg* netAssistantLightweightInfoMsg() const;
84 
87 
89  virtual int minSize() const;
90 
92  virtual void setLightweightConnCount( unsigned count );
93  virtual unsigned lightweightConnCount() const;
94 
96  virtual void setLightweightNamesSize( unsigned size );
97  virtual unsigned lightweightNamesSize() const;
98 
100  virtual void setOwnerHostSize( unsigned size );
101  virtual unsigned ownerHostSize() const;
102 
104  virtual const DtNetU128* lightweightUdpAddrsPtr() const;
105  virtual DtNetU128* lightweightUdpAddrsPtr();
106 
108  virtual const DtNetU32* addressFamiliesPtr() const;
109  virtual DtNetU32* addressFamiliesPtr();
110 
112  virtual const DtNetU16* lightweightPortsPtr() const;
113  virtual DtNetU16* lightweightPortsPtr();
114 
116  virtual const char* lightweightNamesPtr() const;
117  virtual char* lightweightNamesPtr();
118 
120  virtual const char* ownerHostsPtr() const;
121  virtual char* ownerHostsPtr();
122 
123 };
124 
125 #endif // DtAssistantLightweightInfoMsg_H_
126 

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)