Back to index

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

#include <PropertyTraits.h>

List of all members.

Public Types

typedef bool ValueType

Static Public Member Functions

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

Detailed Description

struct nux::type::PropertyTrait< bool >

Definition at line 188 of file PropertyTraits.h.

Member Typedef Documentation

typedef bool nux::type::PropertyTrait< bool >::ValueType

Definition at line 190 of file PropertyTraits.h.

Member Function Documentation

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

Definition at line 197 of file PropertyTraits.h.

    if (serialized_form == "true") {
      return std::make_pair(true, true);
    } else if (serialized_form == "false") {
      return std::make_pair(false, true);
    } else {
      return std::make_pair(false, false);
static std::string nux::type::PropertyTrait< bool >::to_string ( bool  value) [inline, static]

Definition at line 192 of file PropertyTraits.h.

      return value ? "true" : "false";

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