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

static constexpr 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...
 
static constexpr const char * stringType { ::cras::to_cstring(xmlRpcType) }
 String representation of xmlRpcType. More...
 
static constexprconst ::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 const bool cras::XmlRpcValueTraits< T, class >::isCanonical { false }
static

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 const char* cras::XmlRpcValueTraits< T, class >::stringType { ::cras::to_cstring(xmlRpcType) }
static

String representation of xmlRpcType.

Definition at line 76 of file xmlrpc_value_traits.hpp.

◆ xmlRpcType

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

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 Sat Jun 17 2023 02:32:53