MAK RTIspy API Documentation for HLA 1516
assistantInfo.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: assistantInfo.h,v $ $Revision: 1.11 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef assistantInfo_H_
10 #define assistantInfo_H_
11 
14 
15 #include <rtiUtil.h>
16 #include "hostNameAddress.h"
17 #include "assistantMsg.h"
18 
20 typedef std::set< DtAssistantInfo > DtAssistantInfoSet;
21 
23 
26 {
27 public:
28 
30 
32  DtAssistantInfo( const MAKRti::DtString& host, const MAKRti::DtInetAddr& addr,
33  const MAKRti::DtInetAddr& interfaceAddr, int id );
34  DtAssistantInfo( const DtHostNameAddress& host,
35  const MAKRti::DtInetAddr& interfaceAddr, int id );
37 
39  ~DtAssistantInfo();
40 
42  bool operator<(const DtAssistantInfo& other) const;
43 
45  bool operator==(const DtAssistantInfo& other) const;
46 
48  bool operator!=(const DtAssistantInfo& other) const;
49 
51  DtHostNameAddress host() const;
52 
54  void setHost( const DtHostNameAddress& host );
55 
57  const MAKRti::DtString& hostName() const;
58 
60  void setHostName( const MAKRti::DtString& name );
61 
63  const MAKRti::DtInetAddr& address() const;
64 
66  void setAddress( const MAKRti::DtInetAddr& addr );
67 
69  const MAKRti::DtInetAddr& networkInterfaceAddress() const;
70 
72  void setNetworkInterfaceAddress( const MAKRti::DtInetAddr& interfaceAddr );
73 
76  int id() const;
77 
80  void setId( int id );
81 
84  DtAssistantInfoSet::const_iterator findMatchingHostInfo( const DtAssistantInfoSet& set );
85 
87  bool isThisAssistant() const;
88 
90  static void setThisAssistantId( int id );
91 
92 protected:
93 
96 
98  MAKRti::DtInetAddr myNetworkInterfaceAddr;
99 
101  int myId;
102 
105 };
106 
107 #endif // assistantInfo_H_
108 

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)