VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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(DtU16 site, DtU16 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(DtU16 site, DtU16 app);
50 
52  DtU16 siteId() const;
54  void setSiteId(DtU16 siteId);
55 
57  DtU16 applicationId() const;
59  void setApplicationId(DtU16 id);
60 
62  const char *string() const;
63 
64 public:
65 
66  static const DtSimulationAddress& nullId();
67 
68 public:
69 
74 
75 
76 protected:
82  mutable std::string myMutableStringRep;
83 };
84 
85 DT_DLL_VLPROTIND 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 Mon Feb 6 18:36:34 EST 2017 from SVN revision 173107
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)