Sleeping Wombat Common Library  0.50.0
swCommonLibrary
Public Member Functions | Static Public Member Functions | Static Private Member Functions | List of all members
Convert Class Reference

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.
 
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.
 

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 >
SrcType Convert::StringToEnum ( const std::string &  value,
SrcType  defaultValue 
)
inlinestaticprivate

Type haven't been registered.


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