MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assistantLicServerInfoMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: assistantLicServerInfoMsg.h,v $ $Revision: 1.1 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef DtAssistantLicServerInfoMsg_H_
10 #define DtAssistantLicServerInfoMsg_H_
11 
14 
15 #include <vlutil/vlString.h>
16 #include <vlutil/vlUtil.h>
17 #include <rtiUtil.h>
18 
19 #include "assistantLicServerInfo.h"
20 #include "assistantMsg.h"
22 
24 class DtRtiAssistantPeer;
25 
26 typedef void (*DtAssistantLicServerInfoCb)(const DtAssistantLicServerInfoMsg& inter, void* usr);
27 
32 {
33 public:
34 
36  DtAssistantLicServerInfoMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
37 
39  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
40 
42  virtual ~DtAssistantLicServerInfoMsg();
43 
45  virtual DtAssistantMsg* clone(bool copy = true) const;
46 
48  virtual void setLicenseServers(const DtLicServerSet& licenseServers);
49  virtual void getLicenseServers(DtLicServerSet& servers) const;
50 
53  virtual bool isRemoval() const;
54  virtual void setRemoval( bool val );
55 
57  virtual void printData() const;
58 
59 public:
60 
62  static DtAssistantMsg* create(const DtNetAssistantMsgHeader* initial,
63  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
64 
65  static DtAssistantMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
66 
69  static void addCallback(DtRtiAssistantPeer* conn,
70  DtAssistantLicServerInfoCb cb, void* usr);
71  static void removeCallback(DtRtiAssistantPeer* conn,
72  DtAssistantLicServerInfoCb cb, void* usr);
73 
74 protected:
75 
77  virtual DtNetAssistantLicServerInfoMsg* netAssistantLicServerInfoMsg();
78  virtual const DtNetAssistantLicServerInfoMsg* netAssistantLicServerInfoMsg() const;
79 
82 
84  virtual int minSize() const;
85 
87  virtual void setLicenseCount( unsigned count );
88  virtual unsigned licenseCount() const;
89 
91  virtual const DtNetU32* licensePortsPtr() const;
92  virtual DtNetU32* licensePortsPtr();
93 
95  virtual void setLicenseServersSize( unsigned long size );
96  virtual unsigned long licenseServersSize() const;
97 
99  virtual const char* licenseServersPtr() const;
100  virtual char* licenseServersPtr();
101 
102 };
103 
104 #endif // DtAssistantLicServerInfoMsg_H_
105 
Definition: netAssistantMsgHdr.h:26
void(* DtAssistantLicServerInfoCb)(const DtAssistantLicServerInfoMsg &inter, void *usr)
Definition: assistantLicServerInfoMsg.h:26
DtAssistantMsgKind
Definition: assistantMsg.h:54
Base class for assistant Messages.
Definition: assistantMsg.h:154
virtual DtAssistantMsgKind internalMsgKind()=0
#define DT_DLL_ASSISTANT
Default – Unix or Win32 static.
Definition: rtiMsConfig.h:150
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
std::set< DtLicServerInfo > DtLicServerSet
Definition: assistantLicServerInfo.h:62
Network representation for the RTI Assistant License Server Info message.
Definition: netAssistantLicServerInfoMsg.h:22
This file contains the declaration of DtLicServerInfo.
The DtAssistantLicServerInfoMsg defines a wrapper for the RTI Assistant information message used by t...
Definition: assistantLicServerInfoMsg.h:31

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)