VR-Link API Documentation for HLA 1516
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
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
#include <QtCore/QString>
12
#include <
omtReader/omtReader.h
>
13
14
class
DT_DLL_OMTREADER
DtEntityMapperKey
15
{
16
17
public
:
18
19
static
const
int
DtAnyMatch
;
20
21
DtEntityMapperKey
22
(
23
int
kind,
24
int
domain,
25
int
country,
26
int
category,
27
int
subcategory,
28
int
specific,
29
int
extra
30
);
31
32
33
DtEntityMapperKey
();
34
35
DtEntityMapperKey
(
const
char
* p);
36
38
DtEntityMapperKey
(
const
DtEntityMapperKey
& orig);
39
41
~
DtEntityMapperKey
();
42
44
DtEntityMapperKey
& operator=(
const
DtEntityMapperKey
& rhs);
45
47
DtEntityMapperKey
& operator=(
const
char
* rhs);
48
49
const
QString& string()
const
;
50
51
int
kind
()
const
{
return
myKind;}
52
void
setKind
(
int
kind){myKind = kind;}
53
54
int
domain
()
const
{
return
myDomain;}
55
void
setDomain
(
int
domain){myDomain = domain;}
56
57
int
country
()
const
{
return
myCountry;}
58
void
setCountry
(
int
country){myCountry = country;}
59
60
int
category
()
const
{
return
myCategory;}
61
void
setCategory
(
int
category){myCategory = category;}
62
63
int
subcategory
()
const
{
return
mySubcategory;}
64
void
setSubCategory
(
int
subcategory){mySubcategory = subcategory;}
65
66
int
specific
()
const
{
return
mySpecific;}
67
void
setSpecific
(
int
specific){mySpecific = specific;}
68
69
int
extra
()
const
{
return
myExtra;}
70
void
setExtra
(
int
extra){myExtra = extra;}
71
73
74
bool
operator==
(
const
DtEntityMapperKey
& rhs)
const
;
75
virtual
bool
matchPattern(
const
DtEntityMapperKey
&pat)
const
;
76
78
79
bool
operator!=
(
const
DtEntityMapperKey
& rhs)
const
;
80
82
83
bool
operator<
(
const
DtEntityMapperKey
& rhs)
const
;
84
86
87
bool
operator>
(
const
DtEntityMapperKey
& rhs)
const
;
88
89
int
& operator[](
int
);
90
const
int
operator[](
int
)
const
;
91
93
virtual
bool
exactMatch(
const
DtEntityMapperKey
&)
const
;
94
95
protected
:
96
97
mutable
QString
myStringRep
;
98
int
myKind
;
99
int
myDomain
;
100
int
myCountry
;
101
int
myCategory
;
102
int
mySubcategory
;
103
int
mySpecific
;
104
int
myExtra
;
105
};
106
107
inline
int
&
DtEntityMapperKey::operator[]
(
int
i)
108
{
109
switch
(i)
110
{
111
case
0:
112
return
myKind
;
113
case
1:
114
return
myDomain
;
115
case
2:
116
return
myCountry
;
117
case
3:
118
return
myCategory
;
119
case
4:
120
return
mySubcategory
;
121
case
5:
122
return
mySpecific
;
123
case
6:
124
return
myExtra
;
125
}
126
return
myKind
;
127
}
128
129
inline
const
int
DtEntityMapperKey::operator[]
(
int
i)
const
130
{
131
switch
(i)
132
{
133
case
0:
134
return
myKind
;
135
case
1:
136
return
myDomain
;
137
case
2:
138
return
myCountry
;
139
case
3:
140
return
myCategory
;
141
case
4:
142
return
mySubcategory
;
143
case
5:
144
return
mySpecific
;
145
case
6:
146
return
myExtra
;
147
}
148
149
return
myKind
;
150
}
151
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
)