VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
entityType.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vlutil/vlMachineTypes.h>
13 #include "netStructs.h"
14 #include "disEnums.h"
15 #include <sstream>
16 #include <string>
17 
18 #define DtAny -1
19 
27 {
28 public:
29 
31  DtEntityType(const char* p);
32 
34  DtEntityType(int kind, int domain, int country, int category,
35  int subCategory, int specific, int extra);
36 
38  DtEntityType();
39 
42 
44  DtEntityType(const DtEntityType& orig);
45 
47  virtual ~DtEntityType();
48 
51  void setFromNet(const DtNetEntityType &netType);
52 
54  operator DtNetEntityType() const;
55 
57  const char *string() const;
58 
60  static const DtEntityType& defaultType();
61 
63  static const DtEntityType& nullType();
64 
65 public:
66 
70  int DtDomain;
72  int DtCountry;
80  int DtExtra;
81 
82 public:
83 
84  int kind() const {return(DtEntityKind);}
85  int domain() const {return(DtDomain);}
86  int country() const {return(DtCountry);}
87  int category() const {return(DtCategory);}
88  int subCategory() const {return(DtSubCategory);}
89  int specific() const {return(DtSpecific);}
90  int extra() const {return(DtExtra);}
91 
92  void setKind(int val){DtEntityKind = val;}
93  void setDomain(int val){DtDomain = val;}
94  void setCountry(int val){DtCountry = val;}
95  void setCategory(int val){DtCategory = val;}
96  void setSubCategory(int val){DtSubCategory = val;}
97  void setSpecific(int val){DtSpecific = val;}
98  void setExtra(int val){DtExtra = val;}
99 
100  bool matchPattern(const DtEntityType &pat) const;
101  bool DtTypeMatchPattern(const DtEntityType &pat) const { return matchPattern(pat); }
102 
103  int match(const DtEntityType &type) const {return operator==(type);}
104 
105  int operator==(const DtEntityType &type) const;
106  int operator!=(const DtEntityType &type) const;
107 
110  bool operator<(const DtEntityType &type) const;
111 
112 protected:
113 
119  mutable std::string myMutableStringRep;
120 
121 };
122 
123 DT_DLL_VLPROTIND std::ostream& operator<< (std::ostream& stream, const DtEntityType& object);
124 
125 
127 {
128 public:
129 
131  DtRadioEntityType(const char* p);
132  DtRadioEntityType(int kind, int domain, int country, int category,
133  int nomenclatureVersion, int nomenclature);
135  void setFromNet(DtNetRadioEntityType netType);
136 
137  int nomenclatureVersion() const;
138  int nomenclature() const;
139 
140  void setNomenclatureVersion(int version);
141  void setNomenclature(int nom);
142 
143  const char *string() const;
144 
145  static const DtRadioEntityType& nullType();
146 
147  operator DtNetRadioEntityType() const;
148 
149 protected:
150 
156  mutable std::string myMutableString;
157 
158 };
159 
160 #define entityType_inl_
161 #include "entityType.inl"
162 #undef entityType_inl_

Document ID: Generated on Fri May 15 06:36:13 EDT 2015 from SVN revision 153263
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)