◆ EngineDeviceDetection()
FiftyoneDegrees::DeviceDetection::EngineDeviceDetection::EngineDeviceDetection | ( | ConfigDeviceDetection * | config, |
RequiredPropertiesConfig * | properties | ||
) |
Construct a new instance of the engine class with the configuration and properties provided.
- Parameters
-
- config - used to build the engine
- properties - the properties expected to be fetched from results
Member Function Documentation
◆ init()
virtual void FiftyoneDegrees::DeviceDetection::EngineDeviceDetection::init ( fiftyoneDegreesDataSetDeviceDetection * dataSet ) protected virtualInitialise the engine with the data set provided.
This is the data set which carries out all the processing in the engine.
- Parameters
-
- dataSet - pointer to the data used by the engine
◆ processDeviceDetection() [1/3]
virtual ResultsDeviceDetection* FiftyoneDegrees::DeviceDetection::EngineDeviceDetection::processDeviceDetection ( EvidenceDeviceDetection * evidence ) const pure virtualProcesses the evidence provided and returns the result.
- Parameters
-
- evidence - to process. The keys in getKeys() will be the only ones considered by the engine.
- Returns
- a new results instance with the values for all requested properties
Implemented in FiftyoneDegrees::DeviceDetection::Hash::EngineHash.
◆ processDeviceDetection() [2/3]
virtual ResultsDeviceDetection* FiftyoneDegrees::DeviceDetection::EngineDeviceDetection::processDeviceDetection ( const char * userAgent ) const pure virtualProcesses the User-Agent provided and returns the result.
- Parameters
-
- userAgent - to process. This is equivalent to processing the string as an item of evidence with the User-Agent header key.
- Returns
- a new results instance with the values for all requested properties
Implemented in FiftyoneDegrees::DeviceDetection::Hash::EngineHash.
◆ processDeviceDetection() [3/3]
virtual ResultsDeviceDetection* FiftyoneDegrees::DeviceDetection::EngineDeviceDetection::processDeviceDetection ( string & userAgent ) const virtualProcesses the User-Agent provided and returns the result.
- Parameters
-
- userAgent - to process. This is equivalent to processing the string as an item of evidence with the User-Agent header key.
- Returns
- a new results instance with the values for all requested properties
The documentation for this class was generated from the following file:- /home/vsts/work/1/s/apis/device-detection-cxx/src/EngineDeviceDetection.hpp