VR-Link API Documentation for HLA 1516
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
omtReader
entityMapperKey.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
8
9
#pragma once
10
11
#ifndef DtUSE_UTILITIES_NAMESPACE
12
13
14
#include <
omtReader/omtReader.h
>
15
#include <
vlutil/vlString.h
>
16
17
class
DT_DLL_OMTREADER
DtEntityMapperKey
18
{
19
20
public
:
21
22
static
const
int
DtAnyMatch
;
23
24
DtEntityMapperKey
25
(
26
int
kind,
27
int
domain,
28
int
country,
29
int
category,
30
int
subcategory,
31
int
specific,
32
int
extra
33
);
34
35
36
DtEntityMapperKey
();
37
38
DtEntityMapperKey
(
const
char
* p);
39
41
DtEntityMapperKey
(
const
DtEntityMapperKey
& orig);
42
44
~
DtEntityMapperKey
();
45
47
DtEntityMapperKey
& operator=(
const
DtEntityMapperKey
& rhs);
48
50
DtEntityMapperKey
& operator=(
const
char
* rhs);
51
52
const
DtString
& string()
const
;
53
54
int
kind
()
const
{
return
myKind;}
55
void
setKind
(
int
kind){myKind = kind;}
56
57
int
domain
()
const
{
return
myDomain;}
58
void
setDomain
(
int
domain){myDomain = domain;}
59
60
int
country
()
const
{
return
myCountry;}
61
void
setCountry
(
int
country){myCountry = country;}
62
63
int
category
()
const
{
return
myCategory;}
64
void
setCategory
(
int
category){myCategory = category;}
65
66
int
subcategory
()
const
{
return
mySubcategory;}
67
void
setSubCategory
(
int
subcategory){mySubcategory = subcategory;}
68
69
int
specific
()
const
{
return
mySpecific;}
70
void
setSpecific
(
int
specific){mySpecific = specific;}
71
72
int
extra
()
const
{
return
myExtra;}
73
void
setExtra
(
int
extra){myExtra = extra;}
74
76
77
bool
operator==
(
const
DtEntityMapperKey
& rhs)
const
;
78
virtual
bool
matchPattern(
const
DtEntityMapperKey
&pat)
const
;
79
81
82
bool
operator!=
(
const
DtEntityMapperKey
& rhs)
const
;
83
85
86
bool
operator<
(
const
DtEntityMapperKey
& rhs)
const
;
87
89
90
bool
operator>
(
const
DtEntityMapperKey
& rhs)
const
;
91
92
int
& operator[](
int
);
93
const
int
operator[](
int
)
const
;
94
96
virtual
bool
exactMatch(
const
DtEntityMapperKey
&)
const
;
97
98
protected
:
99
100
mutable
DtString
myStringRep
;
101
int
myKind
;
102
int
myDomain
;
103
int
myCountry
;
104
int
myCategory
;
105
int
mySubcategory
;
106
int
mySpecific
;
107
int
myExtra
;
108
};
109
110
inline
int
&
DtEntityMapperKey::operator[]
(
int
i)
111
{
112
switch
(i)
113
{
114
case
0:
115
return
myKind
;
116
case
1:
117
return
myDomain
;
118
case
2:
119
return
myCountry
;
120
case
3:
121
return
myCategory
;
122
case
4:
123
return
mySubcategory
;
124
case
5:
125
return
mySpecific
;
126
case
6:
127
return
myExtra
;
128
}
129
return
myKind
;
130
}
131
132
inline
const
int
DtEntityMapperKey::operator[]
(
int
i)
const
133
{
134
switch
(i)
135
{
136
case
0:
137
return
myKind
;
138
case
1:
139
return
myDomain
;
140
case
2:
141
return
myCountry
;
142
case
3:
143
return
myCategory
;
144
case
4:
145
return
mySubcategory
;
146
case
5:
147
return
mySpecific
;
148
case
6:
149
return
myExtra
;
150
}
151
152
return
myKind
;
153
}
154
155
#endif
Document ID: Generated on Mon Apr 8 04:49:21 EDT 2019 from SVN revision 197403
Copyright © 2005-2016 VT MÄK. All Rights Reserved (
www.mak.com
)