LocalGuidance
A library that generates velocity references to follow a path.
tinyxml_tools::traits::elementXML< T, Enable > Struct Template Reference

Element trait for primitive types. More...

#include <traitsXML.hpp>

Inheritance diagram for tinyxml_tools::traits::elementXML< T, Enable >:
Inheritance graph

Public Types

using Base = element< T >
 
using type = typename Base::type
 
using stringType = typename Base::stringType
 
- Public Types inherited from tinyxml_tools::traits::element< T >
using type = T
 
using stringType = std::string
 

Static Public Member Functions

template<typename T_ = type>
static bool read (type &value, const TiXmlElement *element, const stringType &name, const type &def, typename std::enable_if<!std::is_same< T_, bool >::value >::type *=nullptr)
 
template<typename T_ = type>
static bool read (type &value, const TiXmlElement *element, const stringType &name, const type &def, typename std::enable_if< std::is_same< T_, bool >::value >::type *=nullptr)
 
template<typename T_ = type>
static void write (const type &value, TiXmlElement *const element, const stringType &name, typename std::enable_if<!std::is_floating_point< T_ >::value &&!std::is_same< T_, char >::value >::type *=nullptr)
 
template<typename T_ = type>
static void write (const type &value, TiXmlElement *const element, const stringType &name, typename std::enable_if< std::is_floating_point< T_ >::value >::type *=nullptr)
 
template<typename T_ = type>
static void write (const type &value, TiXmlElement *const element, const stringType &name, typename std::enable_if< std::is_same< T_, char >::value >::type *=nullptr)
 
- Static Public Member Functions inherited from tinyxml_tools::traits::element< T >
static const stringType getDefaultName ()
 
static type getDefaultValue ()
 

Detailed Description

template<typename T, typename Enable = void>
struct tinyxml_tools::traits::elementXML< T, Enable >

Element trait for primitive types.

Member Typedef Documentation

template<typename T , typename Enable = void>
using tinyxml_tools::traits::elementXML< T, Enable >::Base = element<T>
template<typename T , typename Enable = void>
using tinyxml_tools::traits::elementXML< T, Enable >::stringType = typename Base::stringType
template<typename T , typename Enable = void>
using tinyxml_tools::traits::elementXML< T, Enable >::type = typename Base::type

Member Function Documentation

template<typename T , typename Enable = void>
template<typename T_ = type>
static bool tinyxml_tools::traits::elementXML< T, Enable >::read ( type value,
const TiXmlElement *  element,
const stringType name,
const type def,
typename std::enable_if<!std::is_same< T_, bool >::value >::type = nullptr 
)
inlinestatic
template<typename T , typename Enable = void>
template<typename T_ = type>
static bool tinyxml_tools::traits::elementXML< T, Enable >::read ( type value,
const TiXmlElement *  element,
const stringType name,
const type def,
typename std::enable_if< std::is_same< T_, bool >::value >::type = nullptr 
)
inlinestatic
template<typename T , typename Enable = void>
template<typename T_ = type>
static void tinyxml_tools::traits::elementXML< T, Enable >::write ( const type value,
TiXmlElement *const  element,
const stringType name,
typename std::enable_if<!std::is_floating_point< T_ >::value &&!std::is_same< T_, char >::value >::type = nullptr 
)
inlinestatic
template<typename T , typename Enable = void>
template<typename T_ = type>
static void tinyxml_tools::traits::elementXML< T, Enable >::write ( const type value,
TiXmlElement *const  element,
const stringType name,
typename std::enable_if< std::is_floating_point< T_ >::value >::type = nullptr 
)
inlinestatic
template<typename T , typename Enable = void>
template<typename T_ = type>
static void tinyxml_tools::traits::elementXML< T, Enable >::write ( const type value,
TiXmlElement *const  element,
const stringType name,
typename std::enable_if< std::is_same< T_, char >::value >::type = nullptr 
)
inlinestatic

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