Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | Static Public Member Functions | Static Private Member Functions | List of all members
Convert Class Reference

#include <Converters.h>

Public Member Functions

template<typename SrcType >
std::enable_if< !std::is_enum< SrcType >::value, std::string >::type ToString (const SrcType &val)
 
template<typename SrcType >
std::enable_if< !std::is_enum< SrcType >::value, SrcType >::type FromString (const std::string &val, const SrcType &defaultValue)
 
template<typename SrcType >
std::enable_if< std::is_enum< SrcType >::value, std::string >::type ToString (const SrcType &val)
 Konwertuje enuma do stringa. More...
 
template<typename SrcType >
std::enable_if< std::is_enum< SrcType >::value, SrcType >::type FromString (const std::string &val, const SrcType &defaultValue)
 Konwertuje stringa do enuma. More...
 

Static Public Member Functions

template<typename SrcType >
static std::enable_if< std::is_enum< SrcType >::value, std::string >::type ToString (const SrcType &val)
 
template<typename SrcType >
static std::enable_if< std::is_enum< SrcType >::value, SrcType >::type FromString (const std::string &val, const SrcType &defaultValue)
 
template<typename SrcType >
static std::enable_if< !std::is_enum< SrcType >::value, std::string >::type ToString (const SrcType &val)
 
template<typename SrcType >
static std::enable_if< !std::is_enum< SrcType >::value, SrcType >::type FromString (const std::string &val, const SrcType &defaultValue)
 
template<>
static std::enable_if< !std::is_enum< std::wstring >::value, std::string >::type ToString (const std::wstring &value)
 
template<>
static std::enable_if< !std::is_enum< std::wstring >::value, std::wstring >::type FromString (const std::string &value, const std::wstring &defaultValue)
 

Static Private Member Functions

template<typename SrcType >
static std::string EnumToString (SrcType defaultVal)
 
template<typename SrcType >
static SrcType StringToEnum (const std::string &value, SrcType defaultValue)
 

Member Function Documentation

template<typename SrcType >
std::string Convert::EnumToString ( SrcType  defaultVal)
inlinestaticprivate

Type haven't been registered.

template<typename SrcType >
static std::enable_if< std::is_enum< SrcType >::value, SrcType >::type Convert::FromString ( const std::string &  val,
const SrcType &  defaultValue 
)
inlinestatic
template<typename SrcType >
static std::enable_if< !std::is_enum< SrcType >::value, SrcType >::type Convert::FromString ( const std::string &  val,
const SrcType &  defaultValue 
)
inlinestatic
template<>
static std::enable_if< !std::is_enum< std::wstring >::value, std::wstring >::type Convert::FromString ( const std::string &  value,
const std::wstring &  defaultValue 
)
inlinestatic
template<typename SrcType >
std::enable_if< !std::is_enum< SrcType >::value, SrcType >::type Convert::FromString ( const std::string &  val,
const SrcType &  defaultValue 
)
inline
template<typename SrcType >
std::enable_if< std::is_enum< SrcType >::value, SrcType >::type Convert::FromString ( const std::string &  val,
const SrcType &  defaultValue 
)
inline

Konwertuje stringa do enuma.

template<typename SrcType >
SrcType Convert::StringToEnum ( const std::string &  value,
SrcType  defaultValue 
)
inlinestaticprivate

Type haven't been registered.

template<typename SrcType >
static std::enable_if< std::is_enum< SrcType >::value, std::string >::type Convert::ToString ( const SrcType &  val)
inlinestatic
template<typename SrcType >
static std::enable_if< !std::is_enum< SrcType >::value, std::string >::type Convert::ToString ( const SrcType &  val)
inlinestatic
template<>
static std::enable_if< !std::is_enum< std::wstring >::value, std::string >::type Convert::ToString ( const std::wstring &  value)
inlinestatic
template<typename SrcType >
std::enable_if< !std::is_enum< SrcType >::value, std::string >::type Convert::ToString ( const SrcType &  val)
inline
template<typename SrcType >
std::enable_if< std::is_enum< SrcType >::value, std::string >::type Convert::ToString ( const SrcType &  val)
inline

Konwertuje enuma do stringa.


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