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

FiftyoneDegrees::DeviceDetection::Transform Class Reference

Public Member Functions

 Transform (size_t capacity=1024)
 Due to the default param value Transform() ctor is also available in C++ and managed language s.a.
Headers fromJsonGHEV (const std::string &json)
 Convert from getHighEntropyValues() results JSON string into HTTP header key-value pairs, see help section to the fiftyoneDegreesTransformGhevFromJson routine defined in transform.h.
Headers fromBase64GHEV (const std::string &base64)
 Convert from the base64 encoded getHighEntropyValues() results JSON string into HTTP header key-value pairs, see help section to the fiftyoneDegreesTransformGhevFromBase64 routine defined in transform.h.
Headers fromSUA (const std::string &json)
 Convert from the oRTB 2.6 Structured User-Agent JSON string into HTTP header key-value pairs, see help section to the fiftyoneDegreesTransformSUA routine defined in transform.h.

Constructor & Destructor Documentation

◆ Transform()

FiftyoneDegrees::DeviceDetection::Transform::Transform ( size_t capacity = 1024)

Due to the default param value Transform() ctor is also available in C++ and managed language s.a.

C#

Parameters
capacitythe size of the working memory buffer The buffer size will automatically double if there is not enough memory to perform the conversion and the conversion will repeat with a bigger buffer.

Member Function Documentation

◆ fromBase64GHEV()

Headers FiftyoneDegrees::DeviceDetection::Transform::fromBase64GHEV ( const std::string & base64)

Convert from the base64 encoded getHighEntropyValues() results JSON string into HTTP header key-value pairs, see help section to the fiftyoneDegreesTransformGhevFromBase64 routine defined in transform.h.

Parameters
base64base64-encoded string representation of the GHEV JSON
Returns
the converted HTTP header map

◆ fromJsonGHEV()

Headers FiftyoneDegrees::DeviceDetection::Transform::fromJsonGHEV ( const std::string & json)

Convert from getHighEntropyValues() results JSON string into HTTP header key-value pairs, see help section to the fiftyoneDegreesTransformGhevFromJson routine defined in transform.h.

Parameters
jsonstring representation of the GHEV JSON
Returns
the converted HTTP header map

◆ fromSUA()

Headers FiftyoneDegrees::DeviceDetection::Transform::fromSUA ( const std::string & json)

Convert from the oRTB 2.6 Structured User-Agent JSON string into HTTP header key-value pairs, see help section to the fiftyoneDegreesTransformSUA routine defined in transform.h.

Parameters
jsonstring representation of the oRTB SUA JSON
Returns
the converted HTTP header map

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