51Degrees Device Detection C/C++  4.1

A device detection library that is used natively or by 51Degrees products

PropertyMetaData.hpp

1 /* *********************************************************************
2  * This Original Work is copyright of 51 Degrees Mobile Experts Limited.
3  * Copyright 2019 51 Degrees Mobile Experts Limited, 5 Charlotte Close,
4  * Caversham, Reading, Berkshire, United Kingdom RG4 7BY.
5  *
6  * This Original Work is licensed under the European Union Public Licence (EUPL)
7  * v.1.2 and is subject to its terms as set out below.
8  *
9  * If a copy of the EUPL was not distributed with this file, You can obtain
10  * one at https://opensource.org/licenses/EUPL-1.2.
11  *
12  * The 'Compatible Licences' set out in the Appendix to the EUPL (as may be
13  * amended by the European Commission) shall be deemed incompatible for
14  * the purposes of the Work and the provisions of the compatibility
15  * clause in Article 5 of the EUPL shall not apply.
16  *
17  * If using the Work as, or as part of, a network application, by
18  * including the attribution notice(s) required under Article 5 of the EUPL
19  * in the end user terms of the application under an appropriate heading,
20  * such notice(s) shall fulfill the requirements of that article.
21  * ********************************************************************* */
22 
23 #ifndef FIFTYONE_DEGREES_PROPERTY_META_DATA_HPP
24 #define FIFTYONE_DEGREES_PROPERTY_META_DATA_HPP
25 
26 #include <string>
27 #include <vector>
28 #include "EntityMetaData.hpp"
29 
30 using namespace std;
31 
32 namespace FiftyoneDegrees {
33  namespace Common {
38  class PropertyMetaData : public EntityMetaData<string> {
39  public:
50 
58 
89  string name,
90  vector<string> dataFilesWherePresent,
91  string type,
92  string category,
93  string url,
94  bool available,
95  byte displayOrder,
96  bool isMandatory,
97  bool isList,
98  bool isObsolete,
99  bool show,
100  bool showValues,
101  string description,
102  string defaultValue,
103  byte componentId,
104  vector<uint32_t> evidenceProperties);
105 
116  string getName();
117 
123  vector<string> getDataFilesWherePresent();
124 
129  string getType();
130 
135  string getCategory();
136 
141  string getUrl();
142 
148  bool getAvailable();
149 
154  int getDisplayOrder();
155 
161  bool getIsMandatory();
162 
168  bool getIsList();
169 
175  bool getIsObsolete();
176 
181  bool getShow();
182 
188  bool getShowValues();
189 
194  string getDescription();
195 
202  string getDefaultValue();
203 
209  byte getComponentId();
210 
215  vector<uint32_t> getEvidenceProperties();
216 
220  private:
222  vector<string> dataFilesWherePresent;
223 
225  string type;
226 
228  string category;
229 
231  string url;
232 
234  bool available;
235 
237  byte displayOrder;
238 
240  bool isMandatory;
241 
243  bool isList;
244 
246  bool isObsolete;
247 
249  bool show;
250 
252  bool showValues;
253 
255  string description;
256 
258  string defaultValue;
259 
261  byte componentId;
262 
265  vector<uint32_t> evidenceProperties;
266  };
267  }
268 }
269 
270 #endif
51Degrees base namespace.
Definition: ComponentMetaDataBuilderHash.hpp:34
Meta data relating to a property populated by an engine implementation.
Definition: PropertyMetaData.hpp:38
Base class for any entity meta data.
Definition: EntityMetaData.hpp:45