MAK RTIspy API Documentation for HLA 1516
 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 
Definition: netAssistantMsgHdr.h:26
This file contains the declaration of DtRtiConnectionInfo.
Contains the DtRtiConnectionConfigurationInfo class declaration.
DtAssistantMsgKind
Definition: assistantMsg.h:52
Base class for assistant Messages.
Definition: assistantMsg.h:152
virtual DtAssistantMsgKind internalMsgKind()=0
#define DT_DLL_ASSISTANT
_WIN32
Definition: rtiMsConfig.h:121
void(* DtAssistantLightweightInfoCb)(const DtAssistantLightweightInfoMsg &inter, void *usr)
Definition: assistantLightweightInfoMsg.h:30
This file contains the declaration of DtNetAssistantLightweightInfoMsg.
DtRtiAssistantPeer manages the sharing of information between one Assistant to other Assistants using...
Definition: rtiAssistantPeer.h:82
virtual DtAssistantMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual void printData() const
The DtAssistantLightweightInfoMsg defines a wrapper for the RTI Assistant lightweight connection info...
Definition: assistantLightweightInfoMsg.h:35
Network representation for the RTI Assistant Info message.
Definition: netAssistantLightweightInfoMsg.h:21
Stores the information on an RTI connection and possibly matching configuration known by the Assistan...
Definition: connectionAndConfiguration.h:22
This file contains the declaration of DtLicServerInfo.

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)