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  inline bool operator==(const DtSimulationAddress &otherGuy) const;
46  inline bool 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 
DtU16 DtSite
Public for backwards compatibility only, use setSite()/site()
Definition: simulationAddress.h:71
const bool operator==(const DtU128 &lhs, const DtU128 &rhs)
A DtSimulationAddress is used in DIS to identify a particular simulator.
Definition: simulationAddress.h:29
std::ostream & operator<<(std::ostream &os, const Dt3dChord &chord)
DtU16 DtHost
Public for backwards compatibility only, use applicationId()/setApplicationId()
Definition: simulationAddress.h:73
DtSimulationAddress DtFederateId
Definition: netStructs.h:26
#define DT_DLL_VLPROTIND
Definition: vlMachineTypes.h:110
std::string myMutableStringRep
This member is: 1) mutable because it is changed in const methods and used as a char buffer 2) protec...
Definition: simulationAddress.h:82
~DtSimulationAddress()
Definition: simulationAddress.h:37
unsigned short DtU16
A 16 bit unsigned integer value.
Definition: vlMachineTypes.h:140
Definition: netStructs.h:28
Contains the standard DIS enumerations.
const bool operator!=(const DtU128 &lhs, const DtU128 &rhs)
class DT_DLL_VLPROTIND DtSimulationAddress
Definition: netStructs.h:24
const bool operator<(const DtU128 &lhs, const DtU128 &rhs)
This file contains typedefs for machine dependant types.

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)