◆ ExampleBase() [1/3]
FiftyoneDegrees::Examples::Hash::ExampleBase::ExampleBase | ( | byte * | data, |
long | length, | ||
ConfigHash * | config | ||
) |
Construct a new instance of the example to be run using the data pointer provided.
- Parameters
-
- data - pointer to the data set in memory
- length - of the data in bytes
- config - to configure the engine with
◆ ExampleBase() [2/3]
FiftyoneDegrees::Examples::Hash::ExampleBase::ExampleBase ( string dataFilePath ) Construct a new instance of the example to be run using the data file provided.
- Parameters
-
- dataFilePath - path to the data file to use
◆ ExampleBase() [3/3]
FiftyoneDegrees::Examples::Hash::ExampleBase::ExampleBase ( string dataFilePath, ConfigHash * config ) Construct a new instance of the example to be run using the data file and configuration provided.
- Parameters
-
- dataFilePath - path to the data file to use
- config - to configure the engine with
Member Function Documentation
◆ getHashCode()
static unsigned long FiftyoneDegrees::Examples::Hash::ExampleBase::getHashCode ( ResultsHash * results ) static protectedGet the hash code for all the values stored in the results instance.
- Parameters
-
- results - instance to hash
- Returns
- hash code for the results values
◆ processUserAgent()
static void FiftyoneDegrees::Examples::Hash::ExampleBase::processUserAgent ( const char * userAgent, void * state ) static protectedProcesses a User-Agent string and hashes the results, adding to the hash in the thread state provided.
- Parameters
-
- userAgent - the User-Agent to hash
- state - pointer to a ExampleBase::ThreadState
◆ reportStatus()
static void FiftyoneDegrees::Examples::Hash::ExampleBase::reportStatus ( fiftyoneDegreesStatusCode status, const char * fileName ) staticReports the status of the data file initialization.
- Parameters
-
- status - associated with the initialisation
- fileName - used for initialisation
The documentation for this class was generated from the following file:- /home/vsts/work/1/s/apis/device-detection-cxx/examples/CPP/Hash/ExampleBase.hpp