VR-Link API Documentation for HLA Evolved
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vlpi
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
9
#include <
vlutil/vlMachineTypes.h
>
10
#include "
netStructs.h
"
11
#include "
disEnums.h
"
12
#include <string>
13
17
18
#define DtSimSendToAll DtSimulationAddress(0xFFFF, 0xFFFF)
19
20
typedef
DtSimulationAddress
DtFederateId
;
21
29
class
DT_DLL_VLPROTIND
DtSimulationAddress
30
{
31
public
:
32
DtSimulationAddress
();
33
DtSimulationAddress
(
const
char
* str);
34
DtSimulationAddress
(
DtU16
site,
DtU16
app);
35
DtSimulationAddress
(
const
DtNetFederateId
& netId);
36
DtSimulationAddress
(
const
DtSimulationAddress
& orig);
37
~DtSimulationAddress
() {}
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
71
DtU16
DtSite
;
73
DtU16
DtHost
;
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 Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (
www.mak.com
)