\r\n

51Degrees Device Detection C/C++  4.4

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.c, Hash/GettingStarted.cpp, Hash/MatchMetrics.c, Hash/MatchMetrics.cpp, Hash/MetaData.cpp, Hash/OfflineProcessing.c, Hash/Performance.c, Hash/ReloadFromFile.c, Hash/ReloadFromFile.cpp, Hash/ReloadFromMemory.c, Hash/StronglyTyped.c, 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. More...
int32_t  drift
The maximum drift to allow when matching hashes. More...
bool  usePerformanceGraph
True if the performance optimized graph should be used for processing. More...
bool  usePredictiveGraph
True if the predictive optimized graph should be used for processing. More...
bool  traceRoute
True if the route through each graph should be traced during processing. More...

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.

◆ usePerformanceGraph

bool fiftyoneDegreesConfigHash::usePerformanceGraph

True if the performance optimized graph should be used for processing.

Examples
Hash/Performance.c.

◆ usePredictiveGraph

bool fiftyoneDegreesConfigHash::usePredictiveGraph

True if the predictive optimized graph should be used for processing.

Examples
Hash/Performance.c.

The documentation for this struct was generated from the following file:
  • /home/runner/work/device-detection-cxx/device-detection-cxx/common/device-detection-cxx/src/hash/hash.h
On This Page