\r\n

51Degrees Device Detection C/C++  4.5

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. More...
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. More...
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. More...
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. More...

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
capacity - the 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
base64 - base64-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
json - string 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
json - string representation of the oRTB SUA JSON
Returns
the converted HTTP header map

The documentation for this class was generated from the following file:
  • /home/runner/work/device-detection-cxx/device-detection-cxx/common/device-detection-cxx/src/Transform.hpp