VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
entityMapperKey.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2024 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrfGuiCore/vrfGuiCore.h>
12 #include <vlpi/entityType.h>
13 #include <string>
14 
15 class DtEntityType;
16 
17 namespace makVrf
18 {
19  class DT_DLL_VRFGUICORE DtEntityMapperKey : public DtEntityType
20  {
21  public:
22 
23  static const int DtAnyMatch;
24 
26 
27  DtEntityMapperKey(const char* p);
28 
29  DtEntityMapperKey(const DtEntityType&, int force = -1);
30 
32  (
33  int force,
34  int kind,
35  int domain,
36  int country,
37  int category,
38  int subcategory,
39  int specific,
40  int extra
41  );
42 
43  DtEntityMapperKey(int force, const DtEntityType&);
44 
47 
49  virtual ~DtEntityMapperKey() override;
50 
52  DtEntityMapperKey& operator=(const DtEntityMapperKey& rhs);
53  DtEntityMapperKey& operator=(const DtEntityType& rhs);
54 
56  DtEntityMapperKey& operator=(const char* rhs);
57 
58  const std::string& string() const;
59 
60  int force() const {return myForce;}
61  void setForce(int force){myForce = force;}
62 
63  static bool isIed(const DtEntityType& t) { return t.matchPattern(DtEntityType(2,2,0,3,1,1,-1)); };
64 
66 
67  bool operator==(const DtEntityMapperKey& rhs) const;
68  virtual bool matchPattern(const DtEntityMapperKey &pat) const;
69 
71  bool operator==(const DtEntityType& rhsEntityType) const;
73  bool operator!=(const DtEntityType& rhsEntityType) const;
74 
76 
77  bool operator!=(const DtEntityMapperKey& rhs) const;
78 
80 
81  bool operator<(const DtEntityMapperKey& rhs) const;
82 
84 
85  bool operator>(const DtEntityMapperKey& rhs) const;
86 
87  int& operator[](int);
88  const int operator[](int) const;
89 
91  virtual bool exactMatch(const DtEntityMapperKey&) const;
92 
94  bool isNullEntityType() const;
95 
96  void setSidc(const DtString& s)
97  {
98  mySidc = s;
99  }
100 
101  const DtString& sidc() const
102  {
103  return mySidc;
104  }
105 
106  protected:
107 
108  mutable std::string myStringRep;
109  int myForce;
111  };
112 
113  inline int& DtEntityMapperKey::operator[](int i)
114  {
115  switch (i)
116  {
117  case 0:
118  return DtEntityKind;
119  case 1:
120  return DtDomain;
121  case 2:
122  return DtCountry;
123  case 3:
124  return DtCategory;
125  case 4:
126  return DtSubCategory;
127  case 5:
128  return DtSpecific;
129  case 6:
130  return DtExtra;
131  case 7:
132  return myForce;
133  }
134 
135  return myForce;
136  }
137 
138  inline const int DtEntityMapperKey::operator[](int i) const
139  {
140  switch (i)
141  {
142  case 0:
143  return kind();
144  case 1:
145  return domain();
146  case 2:
147  return country();
148  case 3:
149  return category();
150  case 4:
151  return subCategory();
152  case 5:
153  return specific();
154  case 6:
155  return extra();
156  case 7:
157  return force();
158  }
159 
160  return force();
161  }
162 }
void setSidc(const DtString &s)
Definition: entityMapperKey.h:96
static const int DtAnyMatch
Definition: entityMapperKey.h:23
Definition: entityMapperKey.h:19
int myForce
Definition: entityMapperKey.h:109
DT_DLL_VRFGUICORE bool operator==(const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &lhs, const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &rhs)
bool operator>(const DtTemporaryAgentManager::AgentParameters &lhs, const DtTemporaryAgentManager::AgentParameters &rhs)
Definition: DtTemporaryAgentManager.h:76
const DtString & sidc() const
Definition: entityMapperKey.h:101
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
std::string myStringRep
Definition: entityMapperKey.h:108
int force() const
Definition: entityMapperKey.h:60
void setForce(int force)
Definition: entityMapperKey.h:61
DT_DLL_VRFGUICORE bool operator!=(const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &lhs, const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &rhs)
static bool isIed(const DtEntityType &t)
Definition: entityMapperKey.h:63
int & operator[](int)
Definition: entityMapperKey.h:113
DtString mySidc
Definition: entityMapperKey.h:110

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)