Static Public Attributes | List of all members
cras::XmlRpcValueTraits< T, class > Struct Template Reference

Type traits for XmlRpcValue. More...

#include <xmlrpc_value_traits.hpp>

Static Public Attributes

constexpr static const bool isCanonical { false }
 Whether T is a "canonical" type for XmlRpcValue, i.e. whether there is a conversion function defined for T on a XmlRpcValue. This is examined recursively for vectors/maps, and a vector/map is canonical if the innermost type is canonical. More...
 
constexpr static const char * stringType { ::cras::to_cstring(xmlRpcType) }
 String representation of xmlRpcType. More...
 
constexpr static const ::XmlRpc::XmlRpcValue::Type xmlRpcType { ::XmlRpc::XmlRpcValue::TypeInvalid }
 Corresponding XmlRpcValue type that can represent values of T. TypeInvalid for non-representable types. More...
 

Detailed Description

template<typename T, class = void>
struct cras::XmlRpcValueTraits< T, class >

Type traits for XmlRpcValue.

Template Parameters
TA datatype possibly convertible to a XmlRpcValue.

Definition at line 70 of file xmlrpc_value_traits.hpp.

Member Data Documentation

◆ isCanonical

template<typename T , class = void>
constexpr static const bool cras::XmlRpcValueTraits< T, class >::isCanonical { false }
staticconstexpr

Whether T is a "canonical" type for XmlRpcValue, i.e. whether there is a conversion function defined for T on a XmlRpcValue. This is examined recursively for vectors/maps, and a vector/map is canonical if the innermost type is canonical.

Definition at line 81 of file xmlrpc_value_traits.hpp.

◆ stringType

template<typename T , class = void>
constexpr static const char* cras::XmlRpcValueTraits< T, class >::stringType { ::cras::to_cstring(xmlRpcType) }
staticconstexpr

String representation of xmlRpcType.

Definition at line 76 of file xmlrpc_value_traits.hpp.

◆ xmlRpcType

template<typename T , class = void>
constexpr static const ::XmlRpc::XmlRpcValue::Type cras::XmlRpcValueTraits< T, class >::xmlRpcType { ::XmlRpc::XmlRpcValue::TypeInvalid }
staticconstexpr

Corresponding XmlRpcValue type that can represent values of T. TypeInvalid for non-representable types.

Definition at line 73 of file xmlrpc_value_traits.hpp.


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


cras_cpp_common
Author(s): Martin Pecka
autogenerated on Sun Jan 14 2024 03:48:14