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

fiftyoneDegreesConfigHash Struct Reference

Detailed Description

Hash specific configuration structure.

This extends the fiftyoneDegreesConfigDeviceDetection structure by adding collection configurations and options for the allowable drift and difference.

Examples
Hash/GettingStarted.cpp, Hash/MatchMetrics.cpp, Hash/MetaData.cpp, Hash/ReloadFromFile.cpp, and Hash/StronglyTyped.cpp.

Collaboration diagram for fiftyoneDegreesConfigHash:

[legend]

Data Fields

fiftyoneDegreesConfigDeviceDetection b
 Base configuration.
fiftyoneDegreesCollectionConfig strings
 Strings collection config.
fiftyoneDegreesCollectionConfig components
 Components collection config.
fiftyoneDegreesCollectionConfig maps
 Maps collection config.
fiftyoneDegreesCollectionConfig properties
 Properties collection config.
fiftyoneDegreesCollectionConfig values
 Values collection config.
fiftyoneDegreesCollectionConfig profiles
 Profiles collection config.
fiftyoneDegreesCollectionConfig rootNodes
 Root nodes collection config.
fiftyoneDegreesCollectionConfig nodes
 Nodes collection config.
fiftyoneDegreesCollectionConfig profileOffsets
 Profile offsets collection config.
int32_t difference
 The maximum difference to allow when matching hashes.
int32_t drift
 The maximum drift to allow when matching hashes.
bool usePerformanceGraph
 True if the performance optimized graph should be used for processing.
bool usePredictiveGraph
 True if the predictive optimized graph should be used for processing.
bool traceRoute
 True if the route through each graph should be traced during processing.

Field Documentation

◆ difference

int32_t fiftyoneDegreesConfigHash::difference

The maximum difference to allow when matching hashes.

If the difference is exceeded, the result is considered invalid and values will not be returned. By default this is 0.

◆ drift

int32_t fiftyoneDegreesConfigHash::drift

The maximum drift to allow when matching hashes.

If the drift is exceeded, the result is considered invalid and values will not be returned. By default this is 0.

◆ traceRoute

bool fiftyoneDegreesConfigHash::traceRoute

True if the route through each graph should be traced during processing.

The trace can then be printed to debug the matching after the fact. Note that this option is only considered when compiled in debug mode.


The documentation for this struct was generated from the following file: