Back to index

nux  3.0.0
Public Types | Static Public Member Functions
nux::type::PropertyTrait< ENUM, true > Struct Template Reference

#include <PropertyTraits.h>

List of all members.

Public Types

typedef ENUM ValueType
typedef serializable_impl
< unsigned > 
Serialiser
typedef std::pair< ENUM, bool > ResultType

Static Public Member Functions

static std::string to_string (ENUM value)
static std::pair< ENUM, bool > from_string (std::string const &serialized_form)

Detailed Description

template<typename ENUM>
struct nux::type::PropertyTrait< ENUM, true >

Definition at line 102 of file PropertyTraits.h.


Member Typedef Documentation

template<typename ENUM >
typedef std::pair<ENUM, bool> nux::type::PropertyTrait< ENUM, true >::ResultType

Definition at line 106 of file PropertyTraits.h.

template<typename ENUM >
typedef serializable_impl<unsigned> nux::type::PropertyTrait< ENUM, true >::Serialiser

Definition at line 105 of file PropertyTraits.h.

template<typename ENUM >
typedef ENUM nux::type::PropertyTrait< ENUM, true >::ValueType

Definition at line 104 of file PropertyTraits.h.


Member Function Documentation

template<typename ENUM >
static std::pair<ENUM, bool> nux::type::PropertyTrait< ENUM, true >::from_string ( std::string const &  serialized_form) [inline, static]

Definition at line 113 of file PropertyTraits.h.

  {
    Serialiser::ResultType result = Serialiser::from_string_impl(serialized_form);
    return ResultType(static_cast<ENUM>(result.first), result.second);
  }

Here is the call graph for this function:

template<typename ENUM >
static std::string nux::type::PropertyTrait< ENUM, true >::to_string ( ENUM  value) [inline, static]

Definition at line 108 of file PropertyTraits.h.

  {
      return Serialiser::to_string_impl(value);
  }

Here is the call graph for this function:


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