VR-Link API Documentation for DIS
simulationAddress.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #ifndef simulationAddress_H_
7 #define simulationAddress_H_
8 
10 #include "NetStructs.h"
11 #include "disEnums.h"
12 #include <string>
13 
17 
18 #define DtSimSendToAll DtSimulationAddress(0xFFFF, 0xFFFF)
19 
21 
30 {
31 public:
33  DtSimulationAddress(const char* str);
34  DtSimulationAddress(int site, int app);
38 
39  const DtNetFederateId& operator=(const DtNetFederateId &netId);
40  const DtSimulationAddress& operator=(const DtSimulationAddress &netId);
41  bool operator<(const DtSimulationAddress &other) const;
42 
43  operator DtNetFederateId () const;
44 
45  int operator==(const DtSimulationAddress &otherGuy) const;
46  int operator!=(const DtSimulationAddress &otherGuy) const;
47 
49  void init(int site, int app);
50 
52  int siteId() const;
54  void setSiteId(int siteId);
55 
57  int applicationId() const;
59  void setApplicationId(int id);
60 
62  const char *string() const;
63 
64 public:
65 
66  static const DtSimulationAddress& nullId();
67 
68 public:
69 
71  int DtSite;
73  int DtHost;
74 
75 
76 protected:
82  mutable std::string myMutableStringRep;
83 };
84 
85 std::ostream& operator<< (std::ostream& stream, const DtSimulationAddress& object);
86 
87 #define simulationAddress_inl
88 #include "simulationAddress.inl"
89 #undef simulationAddress_inl
90 
91 
92 #endif
93 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)