VR-Link API Documentation for HLA 1516
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vlpi
entityType.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
6
#ifndef entityType_H_
7
#define entityType_H_
8
12
13
#include <
vlutil/vlMachineTypes.h
>
14
#include "
NetStructs.h
"
15
#include "
disEnums.h
"
16
#include <sstream>
17
#include <string>
18
22
#define DtAny -1
23
30
class
DT_DLL_VLPROTIND
DtEntityType
31
{
32
public
:
34
DtEntityType
(
const
char
* p);
35
37
DtEntityType
(
int
kind,
int
domain,
int
country,
int
category,
38
int
subCategory,
int
specific,
int
extra);
39
41
DtEntityType
();
42
44
DtEntityType
(
DtNetEntityType
netType);
45
47
DtEntityType
(
const
DtEntityType
& orig);
48
50
virtual
~
DtEntityType
();
51
54
void
setFromNet(
const
DtNetEntityType
&netType);
55
57
operator
DtNetEntityType
()
const
;
58
60
const
char
*string()
const
;
61
63
static
const
DtEntityType
& defaultType();
64
66
static
const
DtEntityType
& nullType();
67
68
public
:
70
int
DtEntityKind
;
72
int
DtDomain
;
74
int
DtCountry
;
76
int
DtCategory
;
78
int
DtSubCategory
;
80
int
DtSpecific
;
82
int
DtExtra
;
83
84
public
:
85
int
kind
()
const
{
return
(
DtEntityKind
);}
86
int
domain
()
const
{
return
(DtDomain);}
87
int
country
()
const
{
return
(DtCountry);}
88
int
category
()
const
{
return
(DtCategory);}
89
int
subCategory
()
const
{
return
(DtSubCategory);}
90
int
specific
()
const
{
return
(DtSpecific);}
91
int
extra
()
const
{
return
(DtExtra);}
92
93
void
setKind
(
int
val){
DtEntityKind
= val;}
94
void
setDomain
(
int
val){DtDomain = val;}
95
void
setCountry
(
int
val){DtCountry = val;}
96
void
setCategory
(
int
val){DtCategory = val;}
97
void
setSubCategory
(
int
val){DtSubCategory = val;}
98
void
setSpecific
(
int
val){DtSpecific = val;}
99
void
setExtra
(
int
val){DtExtra = val;}
100
101
bool
matchPattern(
const
DtEntityType
&pat)
const
;
102
bool
DtTypeMatchPattern
(
const
DtEntityType
&pat)
const
{
return
matchPattern(pat); }
103
104
int
match
(
const
DtEntityType
&type)
const
{
return
operator==
(type);}
105
106
int
operator==
(
const
DtEntityType
&type)
const
;
107
int
operator!=
(
const
DtEntityType
&type)
const
;
108
111
bool
operator<
(
const
DtEntityType
&type)
const
;
112
113
protected
:
119
mutable
std::string
myMutableStringRep
;
120
};
121
122
DT_DLL_VLPROTIND
std::ostream&
operator<<
(std::ostream& stream,
const
DtEntityType
&
object
);
123
124
125
class
DT_DLL_VLPROTIND
DtRadioEntityType
:
public
DtEntityType
126
{
127
public
:
128
DtRadioEntityType
();
129
DtRadioEntityType
(
const
char
* p);
130
DtRadioEntityType
(
int
kind,
int
domain,
int
country,
int
category,
131
int
nomenclatureVersion,
int
nomenclature);
132
DtRadioEntityType
(
DtNetRadioEntityType
netType);
133
void
setFromNet
(
DtNetRadioEntityType
netType);
134
135
int
nomenclatureVersion()
const
;
136
int
nomenclature()
const
;
137
138
void
setNomenclatureVersion(
int
version);
139
void
setNomenclature(
int
nom);
140
141
const
char
*
string
()
const
;
142
143
static
const
DtRadioEntityType
&
nullType
();
144
145
operator
DtNetRadioEntityType
()
const
;
146
147
148
protected
:
154
mutable
std::string
myMutableString
;
155
};
156
157
#define entityType_inl_
158
#include "entityType.inl"
159
#undef entityType_inl_
160
161
#endif
162
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
)