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

MetaDataHash.hpp

1/* *********************************************************************
2 * This Original Work is copyright of 51 Degrees Mobile Experts Limited.
3 * Copyright 2026 51 Degrees Mobile Experts Limited, Davidson House,
4 * Forbury Square, Reading, Berkshire, United Kingdom RG1 3EU.
5 *
6 * This Original Work is licensed under the European Union Public Licence
7 * (EUPL) 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_METADATA_HASH_HPP
24#define FIFTYONE_DEGREES_METADATA_HASH_HPP
25
26#include "../../common/Exceptions.hpp"
27#include "../../common/MetaData.hpp"
28#include "PropertyMetaDataCollectionHash.hpp"
29#include "ValueMetaDataCollectionHash.hpp"
30#include "ValueMetaDataCollectionForPropertyHash.hpp"
31#include "ValueMetaDataCollectionForProfileHash.hpp"
32#include "ComponentMetaDataCollectionHash.hpp"
33#include "ProfileMetaDataCollectionHash.hpp"
34#include "PropertyMetaDataCollectionForComponentHash.hpp"
35#include "PropertyMetaDataCollectionForPropertyHash.hpp"
36#include "PropertyMetaDataBuilderHash.hpp"
37#include "hash.h"
38
39using namespace FiftyoneDegrees::Common;
40
41namespace FiftyoneDegrees {
42 namespace DeviceDetection {
43 namespace Hash {
47 class MetaDataHash : public MetaData
48 {
49 public:
54
59 shared_ptr<fiftyoneDegreesResourceManager> manager);
60
65
71
73
75
77
79
82
85
87 ProfileMetaData *profile) const;
88
90 PropertyMetaData *property) const;
91
93 ComponentMetaData *component) const;
94
96 PropertyMetaData *property) const;
97
100
103
108 };
109 }
110 }
111}
112
113#endif
A group of items accessible by index or key.
Definition Collection.hpp:79
EntityMetaData relating to a component populated by an engine implementation.
Definition ComponentMetaData.hpp:37
shared_ptr< fiftyoneDegreesResourceManager > manager
A shared pointer to the manager is passed around and referenced by all instances that hold open a res...
Definition MetaData.hpp:226
MetaData(shared_ptr< fiftyoneDegreesResourceManager > manager)
Construct a new instance of MetaData.
Meta data relating to a profile populated by an engine implementation.
Definition ProfileMetaData.hpp:38
Meta data relating to a property populated by an engine implementation.
Definition PropertyMetaData.hpp:38
Meta data relating to a value populated by an engine implementation.
Definition ValueMetaData.hpp:130
ValueMetaData * getDefaultValueForProperty(PropertyMetaData *property) const
Get the default value for the specified component.
PropertyMetaData * getPropertyForValue(ValueMetaData *value) const
Get the property which the value relates to.
MetaDataHash(shared_ptr< fiftyoneDegreesResourceManager > manager)
Construct a new instance of MetaData.
Collection< ValueMetaDataKey, ValueMetaData > * getValuesForProperty(PropertyMetaData *property) const
Get a new Collection instance of value meta data relating to the specified property,...
Collection< byte, ComponentMetaData > * getComponents() const
Get a new Collection instance of all component meta data keyed on the unique id of the component.
Collection< string, PropertyMetaData > * getEvidencePropertiesForProperty(PropertyMetaData *property) const
Get the properties which are required to fetch extra evidence for a specified property.
ComponentMetaData * getComponentForProfile(ProfileMetaData *profile) const
Get the Component which the specified profile relates to.
Collection< ValueMetaDataKey, ValueMetaData > * getValuesForProfile(ProfileMetaData *profile) const
Get a new Collection instance of value meta data for the specified profile, keyed on the name of the ...
ComponentMetaData * getComponentForProperty(PropertyMetaData *property) const
Get the Component which the specified property relates to.
Collection< ValueMetaDataKey, ValueMetaData > * getValues() const
Get a new Collection instance of all value meta data keyed on the name of the value and the property ...
Collection< string, PropertyMetaData > * getPropertiesForComponent(ComponentMetaData *component) const
Get a new Collection instance of the property meta data relating to the specified component,...
Collection< string, PropertyMetaData > * getProperties() const
Get a new Collection instance of all property meta data keyed on the name of the property.
~MetaDataHash()
Free any data and handles used for the meta data.
Collection< uint32_t, ProfileMetaData > * getProfiles() const
Get a new Collection instance of all profile meta data keyed on the unique id of the profile.
ProfileMetaData * getDefaultProfileForComponent(ComponentMetaData *component) const
Get the default profile for the specified component.
Shared classes.
Definition Collection.hpp:31
Hash Device Detection specific classes.
Definition ComponentMetaDataBuilderHash.hpp:35
Device Detection specific classes.
Definition ComponentMetaDataBuilderHash.hpp:34
A C++ wrapper class for transform.h conversion routines.
Definition ComponentMetaDataBuilderHash.hpp:33