Classes | |
struct | use_json_t |
struct | use_protobuf_t |
Concepts | |
concept | HasValueTypeAndIterator |
concept | IsSequenceContainer |
concept | IsTupleLike |
Functions | |
std::string | parseNonceFromMessage (const std::string &msg) |
std::optional< std::string > | parseAccessTokenFromCookieHeader (const std::string &cookie_str) |
std::string | parseAccessTokenToCookieHeader (const std::string &token_str) |
std::optional< std::string > | parseRefreshTokenFromCookieHeader (const std::string &cookie_str) |
std::string | parseRefreshTokenToCookieHeader (const std::string &token_str) |
http::Header | parseHeaderFromString (const std::string &header_str) |
Parse a header string to a Header enum. | |
http::Method | parseMethodFromString (const std::string &method) |
Parse the given string to a http::Method . | |
template<class T > | |
std::optional< T > | parseFromJson (json json, use_json_t) |
Parses a JSON object to a Transformation object. | |
template<class T > | |
std::optional< T > | parseFromJson (std::string json_str, use_protobuf_t) |
Parses a JSON string to a Transformation object using Protobuf. | |
std::optional< json > | parseToJson (TransformationDef transform_def, use_json_t) |
Parses a TransformationDef object to a JSON object. | |
template<> | |
std::optional< TransformationDef > | parseFromJson (json json, use_json_t) |
Parses a JSON object to a TransformationDef object. | |
std::optional< json > | parseToJson (Dimension dimension, use_json_t) |
Parses a Dimension object to a JSON object. | |
template<> | |
std::optional< Dimension > | parseFromJson (json json, use_json_t) |
Parses a JSON object to a Dimension object. | |
std::optional< std::string > | parseToJson (Dimension dimension, use_protobuf_t) |
Parses a Dimension object to a JSON string using Protobuf. | |
template<> | |
std::optional< Dimension > | parseFromJson (std::string json_str, use_protobuf_t) |
Parses a JSON string to a Dimension object. | |
std::optional< json > | parseToJson (Feature feature, use_json_t) |
Parses a Feature object to a JSON object. | |
template<> | |
std::optional< Feature > | parseFromJson (json json_obj, use_json_t) |
Parses a JSON object to a Feature object. | |
std::optional< std::string > | parseToJson (Feature feature, use_protobuf_t) |
Converts a Feature object to a JSON string using protobuf. | |
template<> | |
std::optional< Feature > | parseFromJson (std::string json_str, use_protobuf_t) |
Parses a JSON string to a Feature object using Protobuf. | |
std::optional< json > | parseToJson (FeatureRecord feature, use_json_t) |
std::optional< std::string > | parseToJson (FeatureRecord feature_record, use_protobuf_t) |
template<> | |
std::optional< FeatureRecord > | parseFromJson (json json_obj, use_json_t) |
Parses a JSON object to a TransformationDef object. | |
template<> | |
std::optional< FeatureRecord > | parseFromJson (std::string json_str, use_protobuf_t) |
Parses a JSON string to a Dimension object. | |
std::optional< json > | parseToJson (std::vector< Samples > samples, use_json_t) |
template<> | |
std::optional< std::vector< Samples > > | parseFromJson (json json, use_json_t) |
Parses a JSON object to a TransformationDef object. | |
std::optional< json > | parseToJson (Transformation transformation, use_json_t) |
Parses a Transformation object to a JSON object. | |
std::optional< std::string > | parseToJson (Transformation transformation, use_protobuf_t) |
Converts a Transformation object to a JSON string using protobuf. | |
std::optional< json > | parseToJson (TransformationRecord transformation_record, use_json_t) |
Converts a TransformationRecord object to a JSON object. | |
std::optional< std::string > | parseToJson (TransformationRecord transformation_record, use_protobuf_t) |
Converts a TransformationRecord object to a JSON string using Protobuf. | |
template<> | |
std::optional< TransformationRecord > | parseFromJson (json json_obj, use_json_t) |
Parses a JSON object to a TransformationRecord object. | |
template<> | |
std::optional< TransformationRecord > | parseFromJson (std::string json_str, use_protobuf_t) |
Parses a JSON string to a TransformationRecord object using Protobuf. | |
template<> | |
std::optional< TransformationDef > | parseFromJson (json json, use_json_t) |
Parses a JSON object to a TransformationDef object. | |
template<> | |
std::optional< Dimension > | parseFromJson (json json_obj, use_json_t) |
Parses a JSON object to a TransformationDef object. | |
template<> | |
std::optional< Dimension > | parseFromJson (std::string json_str, use_protobuf_t) |
Parses a JSON string to a Dimension object. | |
template<> | |
std::optional< Feature > | parseFromJson (json json_obj, use_json_t) |
Parses a JSON object to a TransformationDef object. | |
template<> | |
std::optional< Feature > | parseFromJson (std::string json_str, use_protobuf_t) |
Parses a JSON string to a Dimension object. | |
template<> | |
std::optional< FeatureRecord > | parseFromJson (json json_obj, use_json_t) |
Parses a JSON object to a TransformationDef object. | |
template<> | |
std::optional< FeatureRecord > | parseFromJson (std::string json_str, use_protobuf_t) |
Parses a JSON string to a Dimension object. | |
template<> | |
std::optional< std::vector< Samples > > | parseFromJson (json json_val, use_json_t) |
Parses a JSON object to a TransformationDef object. | |
template<> | |
std::optional< Transformation > | parseFromJson (json json_obj, use_json_t) |
Parses a JSON object to a TransformationDef object. | |
template<> | |
std::optional< Transformation > | parseFromJson (std::string json_str, use_protobuf_t) |
Parses a JSON string to a Dimension object. | |
template<> | |
std::optional< TransformationRecord > | parseFromJson (json json_obj, use_json_t) |
Parses a JSON object to a TransformationDef object. | |
template<> | |
std::optional< TransformationRecord > | parseFromJson (std::string json_str, use_protobuf_t) |
Parses a JSON string to a Dimension object. | |
template<> | |
std::optional< std::size_t > | parseRouteArgAs< std::size_t > (const RouteArg &arg) |
Parses a RouteArg as a unsigned integer. | |
template<> | |
std::optional< std::uint32_t > | parseRouteArgAs< std::uint32_t > (const RouteArg &arg) |
Parses a RouteArg as a 32bit unsigned integer. | |
template<> | |
std::optional< std::string > | parseRouteArgAs< std::string > (const RouteArg &arg) |
Parses a RouteArg as a string. | |
std::optional< std::string > dcn::parse::parseAccessTokenFromCookieHeader | ( | const std::string & | cookie_str | ) |
std::string dcn::parse::parseAccessTokenToCookieHeader | ( | const std::string & | token_str | ) |
std::optional< Transformation > dcn::parse::parseFromJson | ( | json | json, |
use_json_t | |||
) |
Parses a JSON object to a Transformation object.
json_obj | The JSON object to parse. |
std::optional< TransformationDef > dcn::parse::parseFromJson | ( | json | json, |
use_json_t | |||
) |
Parses a JSON object to a TransformationDef object.
Parses a JSON object to a Transformation object.
json | The JSON object to parse. |
json_obj | The JSON object to parse. |
std::optional< Dimension > dcn::parse::parseFromJson | ( | json | json, |
use_json_t | |||
) |
Parses a JSON object to a Dimension object.
json | The JSON object to parse. |
Parses a JSON object to a Dimension object.
Parses a JSON object to a Transformation object.
json | The JSON object to parse. |
json_obj | The JSON object to parse. |
std::optional< std::vector< Samples > > dcn::parse::parseFromJson | ( | json | json, |
use_json_t | |||
) |
Parses a JSON object to a TransformationDef object.
Parses a JSON object to a Feature object.
Parses a JSON object to a Dimension object.
Parses a JSON object to a Transformation object.
json | The JSON object to parse. |
json_obj | The JSON object to parse. |
std::optional< TransformationDef > dcn::parse::parseFromJson | ( | json | json, |
use_json_t | |||
) |
Parses a JSON object to a TransformationDef object.
Parses a JSON object to a TransformationRecord object.
Parses a JSON object to a Feature object.
Parses a JSON object to a Dimension object.
Parses a JSON object to a Transformation object.
json | The JSON object to parse. |
json_obj | The JSON object to parse. |
std::optional< Feature > dcn::parse::parseFromJson | ( | json | json_obj, |
use_json_t | |||
) |
Parses a JSON object to a Feature object.
json_obj | The JSON object to parse. |
Parses a JSON object to a Feature object.
Parses a JSON object to a Dimension object.
Parses a JSON object to a Transformation object.
json | The JSON object to parse. |
json_obj | The JSON object to parse. |
std::optional< FeatureRecord > dcn::parse::parseFromJson | ( | json | json_obj, |
use_json_t | |||
) |
Parses a JSON object to a TransformationDef object.
Parses a JSON object to a Feature object.
Parses a JSON object to a Dimension object.
Parses a JSON object to a Transformation object.
json | The JSON object to parse. |
json_obj | The JSON object to parse. |
std::optional< TransformationRecord > dcn::parse::parseFromJson | ( | json | json_obj, |
use_json_t | |||
) |
Parses a JSON object to a TransformationRecord object.
json_obj | The JSON object to parse. |
Parses a JSON object to a TransformationRecord object.
Parses a JSON object to a Feature object.
Parses a JSON object to a Dimension object.
Parses a JSON object to a Transformation object.
json | The JSON object to parse. |
json_obj | The JSON object to parse. |
std::optional< Dimension > dcn::parse::parseFromJson | ( | json | json, |
use_json_t | |||
) |
Parses a JSON object to a TransformationDef object.
Parses a JSON object to a TransformationRecord object.
Parses a JSON object to a Feature object.
Parses a JSON object to a Dimension object.
Parses a JSON object to a Transformation object.
json | The JSON object to parse. |
json_obj | The JSON object to parse. |
std::optional< Feature > dcn::parse::parseFromJson | ( | json | json, |
use_json_t | |||
) |
Parses a JSON object to a TransformationDef object.
Parses a JSON object to a TransformationRecord object.
Parses a JSON object to a Feature object.
Parses a JSON object to a Dimension object.
Parses a JSON object to a Transformation object.
json | The JSON object to parse. |
json_obj | The JSON object to parse. |
std::optional< FeatureRecord > dcn::parse::parseFromJson | ( | json | json, |
use_json_t | |||
) |
Parses a JSON object to a TransformationDef object.
Parses a JSON object to a TransformationRecord object.
Parses a JSON object to a Feature object.
Parses a JSON object to a Dimension object.
Parses a JSON object to a Transformation object.
json | The JSON object to parse. |
json_obj | The JSON object to parse. |
std::optional< Transformation > dcn::parse::parseFromJson | ( | json | json, |
use_json_t | |||
) |
Parses a JSON object to a TransformationDef object.
Parses a JSON object to a TransformationRecord object.
Parses a JSON object to a Feature object.
Parses a JSON object to a Dimension object.
Parses a JSON object to a Transformation object.
json | The JSON object to parse. |
json_obj | The JSON object to parse. |
std::optional< TransformationRecord > dcn::parse::parseFromJson | ( | json | json, |
use_json_t | |||
) |
Parses a JSON object to a TransformationDef object.
Parses a JSON object to a TransformationRecord object.
Parses a JSON object to a Feature object.
Parses a JSON object to a Dimension object.
Parses a JSON object to a Transformation object.
json | The JSON object to parse. |
json_obj | The JSON object to parse. |
std::optional< std::vector< Samples > > dcn::parse::parseFromJson | ( | json | json, |
use_json_t | |||
) |
Parses a JSON object to a TransformationDef object.
Parses a JSON object to a TransformationRecord object.
Parses a JSON object to a Feature object.
Parses a JSON object to a Dimension object.
Parses a JSON object to a Transformation object.
json | The JSON object to parse. |
json_obj | The JSON object to parse. |
std::optional< Transformation > dcn::parse::parseFromJson | ( | std::string | json_str, |
use_protobuf_t | |||
) |
Parses a JSON string to a Transformation object using Protobuf.
json_str | The JSON string to parse. |
std::optional< Dimension > dcn::parse::parseFromJson | ( | std::string | json_str, |
use_protobuf_t | |||
) |
Parses a JSON string to a Dimension object.
Parses a JSON string to a Transformation object using Protobuf.
json_str | The JSON string to parse. |
json_str | The JSON string to parse. |
std::optional< Feature > dcn::parse::parseFromJson | ( | std::string | json_str, |
use_protobuf_t | |||
) |
Parses a JSON string to a Feature object using Protobuf.
json_str | The JSON string to parse. |
Parses a JSON string to a Feature object using Protobuf.
Parses a JSON string to a Transformation object using Protobuf.
json_str | The JSON string to parse. |
json_str | The JSON string to parse. |
std::optional< FeatureRecord > dcn::parse::parseFromJson | ( | std::string | json_str, |
use_protobuf_t | |||
) |
Parses a JSON string to a Dimension object.
Parses a JSON string to a Feature object using Protobuf.
Parses a JSON string to a Transformation object using Protobuf.
json_str | The JSON string to parse. |
json_str | The JSON string to parse. |
std::optional< TransformationRecord > dcn::parse::parseFromJson | ( | std::string | json_str, |
use_protobuf_t | |||
) |
Parses a JSON string to a TransformationRecord object using Protobuf.
json_str | The JSON string to parse. |
Parses a JSON string to a TransformationRecord object using Protobuf.
Parses a JSON string to a Feature object using Protobuf.
Parses a JSON string to a Transformation object using Protobuf.
json_str | The JSON string to parse. |
json_str | The JSON string to parse. |
std::optional< Dimension > dcn::parse::parseFromJson | ( | std::string | json_str, |
use_protobuf_t | |||
) |
Parses a JSON string to a Dimension object.
Parses a JSON string to a TransformationRecord object using Protobuf.
Parses a JSON string to a Feature object using Protobuf.
Parses a JSON string to a Transformation object using Protobuf.
json_str | The JSON string to parse. |
json_str | The JSON string to parse. |
std::optional< Feature > dcn::parse::parseFromJson | ( | std::string | json_str, |
use_protobuf_t | |||
) |
Parses a JSON string to a Dimension object.
Parses a JSON string to a TransformationRecord object using Protobuf.
Parses a JSON string to a Feature object using Protobuf.
Parses a JSON string to a Transformation object using Protobuf.
json_str | The JSON string to parse. |
json_str | The JSON string to parse. |
std::optional< FeatureRecord > dcn::parse::parseFromJson | ( | std::string | json_str, |
use_protobuf_t | |||
) |
Parses a JSON string to a Dimension object.
Parses a JSON string to a TransformationRecord object using Protobuf.
Parses a JSON string to a Feature object using Protobuf.
Parses a JSON string to a Transformation object using Protobuf.
json_str | The JSON string to parse. |
json_str | The JSON string to parse. |
std::optional< Transformation > dcn::parse::parseFromJson | ( | std::string | json_str, |
use_protobuf_t | |||
) |
Parses a JSON string to a Dimension object.
Parses a JSON string to a TransformationRecord object using Protobuf.
Parses a JSON string to a Feature object using Protobuf.
Parses a JSON string to a Transformation object using Protobuf.
json_str | The JSON string to parse. |
json_str | The JSON string to parse. |
std::optional< TransformationRecord > dcn::parse::parseFromJson | ( | std::string | json_str, |
use_protobuf_t | |||
) |
Parses a JSON string to a Dimension object.
Parses a JSON string to a TransformationRecord object using Protobuf.
Parses a JSON string to a Feature object using Protobuf.
Parses a JSON string to a Transformation object using Protobuf.
json_str | The JSON string to parse. |
json_str | The JSON string to parse. |
http::Header dcn::parse::parseHeaderFromString | ( | const std::string & | header_str | ) |
Parse a header string to a Header enum.
[in] | header_str | The header string to parse |
http::Method dcn::parse::parseMethodFromString | ( | const std::string & | method | ) |
Parse the given string to a http::Method
.
method | The string to be parsed. |
Method
or Method::Unknown
if the string doesn't match any of the methods. std::string dcn::parse::parseNonceFromMessage | ( | const std::string & | msg | ) |
std::optional< std::string > dcn::parse::parseRefreshTokenFromCookieHeader | ( | const std::string & | cookie_str | ) |
std::string dcn::parse::parseRefreshTokenToCookieHeader | ( | const std::string & | token_str | ) |
std::optional< std::size_t > dcn::parse::parseRouteArgAs< std::size_t > | ( | const RouteArg & | arg | ) |
Parses a RouteArg
as a unsigned integer.
This function takes a RouteArg
and attempts to parse it as a unsigned integer. If the parsing is successful, it returns the unsigned integer; otherwise, it returns an empty optional.
arg | The RouteArg to parse. |
std::optional< std::uint32_t > dcn::parse::parseRouteArgAs< std::uint32_t > | ( | const RouteArg & | arg | ) |
Parses a RouteArg
as a 32bit unsigned integer.
This function takes a RouteArg
and attempts to parse it as a 32bit unsigned integer. If the parsing is successful, it returns the 32bit unsigned integer; otherwise, it returns an empty optional.
arg | The RouteArg to parse. |
std::optional< json > dcn::parse::parseToJson | ( | Dimension | dimension, |
use_json_t | |||
) |
Parses a Dimension object to a JSON object.
dimension | The Dimension object to parse. |
std::optional< std::string > dcn::parse::parseToJson | ( | Dimension | dimension, |
use_protobuf_t | |||
) |
Parses a Dimension object to a JSON string using Protobuf.
dimension | The Dimension object to parse. |
std::optional< json > dcn::parse::parseToJson | ( | Feature | feature, |
use_json_t | |||
) |
Parses a Feature object to a JSON object.
feature | The Feature object to parse. |
std::optional< std::string > dcn::parse::parseToJson | ( | Feature | feature, |
use_protobuf_t | |||
) |
Converts a Feature object to a JSON string using protobuf.
feature | The Feature object to convert |
std::optional< json > dcn::parse::parseToJson | ( | FeatureRecord | feature, |
use_json_t | |||
) |
std::optional< std::string > dcn::parse::parseToJson | ( | FeatureRecord | feature_record, |
use_protobuf_t | |||
) |
std::optional< json > dcn::parse::parseToJson | ( | std::vector< Samples > | samples, |
use_json_t | |||
) |
std::optional< json > dcn::parse::parseToJson | ( | Transformation | transformation, |
use_json_t | |||
) |
Parses a Transformation object to a JSON object.
transformation | The Transformation object to parse. |
std::optional< std::string > dcn::parse::parseToJson | ( | Transformation | transformation, |
use_protobuf_t | |||
) |
Converts a Transformation object to a JSON string using protobuf.
transformation | The Transformation object to convert |
std::optional< json > dcn::parse::parseToJson | ( | TransformationDef | transform_def, |
use_json_t | |||
) |
Parses a TransformationDef object to a JSON object.
transform_def | The TransformationDef object to parse. |
std::optional< json > dcn::parse::parseToJson | ( | TransformationRecord | transformation_record, |
use_json_t | |||
) |
Converts a TransformationRecord object to a JSON object.
transformation_record | The TransformationRecord object to convert. |
std::optional< std::string > dcn::parse::parseToJson | ( | TransformationRecord | transformation_record, |
use_protobuf_t | |||
) |
Converts a TransformationRecord object to a JSON string using Protobuf.
transformation_record | The TransformationRecord object to convert. |