51Degrees Device Detection C/C++  4.1

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/MatchMetrics.c, Hash/MatchMetrics.cpp, Hash/OfflineProcessing.c, Hash/ReloadFromFile.c, Hash/ReloadFromMemory.c, and Hash/StronglyTyped.c.

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.

◆ usePredictiveGraph

bool fiftyoneDegreesConfigHash::usePredictiveGraph

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


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