VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
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
(
int
site,
int
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(
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
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 Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)