#include <PropertiesToString.h>
Public Types | |
enum | ToFormat { ToDefault = 0, ToLua = 0, ToJSON = 1 } |
Public Member Functions | |
PropertiesToString (std::ostream &out, const ToFormat to_format=ToDefault) | |
void | operator() (const primitive_property_vector &v) const |
void | operator() (const property_vector &v) const |
void | operator() (const bool v) const |
void | operator() (const std::int64_t v) const |
void | operator() (const std::uint64_t v) const |
void | operator() (const std::uint32_t v) const |
void | operator() (const string &s) const |
void | operator() (const Properties &properties) const |
template<typename T > | |
void | operator() (const T &v) const |
void | enter (const std::string &key, const Properties *props, const bool is_last_child) const |
void | leave (const std::string &key, const Properties *props, const bool is_last_child) const |
Detailed Description
Definition at line 48 of file PropertiesToString.h.
Member Enumeration Documentation
Definition at line 50 of file PropertiesToString.h.
Constructor & Destructor Documentation
PropertiesToString::PropertiesToString | ( | std::ostream & | out, |
const ToFormat | to_format = ToDefault |
||
) | [explicit] |
Definition at line 113 of file PropertiesToString.cc.
Member Function Documentation
void PropertiesToString::enter | ( | const std::string & | key, |
const Properties * | props, | ||
const bool | is_last_child | ||
) | const |
Definition at line 89 of file PropertiesToString.cc.
References PropTree< Key, Ops, TreeType >::is_leaf(), and PropTree< Key, Ops, TreeType >::value().
void PropertiesToString::leave | ( | const std::string & | key, |
const Properties * | props, | ||
const bool | is_last_child | ||
) | const [inline] |
Definition at line 110 of file PropertiesToString.h.
References PropTree< Key, Ops, TreeType >::is_leaf().
void PropertiesToString::operator() | ( | const primitive_property_vector & | v | ) | const |
Definition at line 57 of file PropertiesToString.cc.
Referenced by operator()().
void PropertiesToString::operator() | ( | const property_vector & | v | ) | const |
Definition at line 73 of file PropertiesToString.cc.
References operator()().
void PropertiesToString::operator() | ( | const bool | v | ) | const [inline] |
Definition at line 64 of file PropertiesToString.h.
void PropertiesToString::operator() | ( | const std::int64_t | v | ) | const [inline] |
Definition at line 70 of file PropertiesToString.h.
void PropertiesToString::operator() | ( | const std::uint64_t | v | ) | const [inline] |
Definition at line 74 of file PropertiesToString.h.
void PropertiesToString::operator() | ( | const std::uint32_t | v | ) | const [inline] |
Definition at line 81 of file PropertiesToString.h.
void PropertiesToString::operator() | ( | const string & | s | ) | const [inline] |
Definition at line 85 of file PropertiesToString.h.
References escape_lua().
void PropertiesToString::operator() | ( | const Properties & | properties | ) | const [inline] |
Definition at line 89 of file PropertiesToString.h.
References PropTree< Key, Ops, TreeType >::is_leaf(), PropTree< Key, Ops, TreeType >::value(), and PropTree< Key, Ops, TreeType >::visit().
void PropertiesToString::operator() | ( | const T & | v | ) | const [inline] |
Definition at line 103 of file PropertiesToString.h.
The documentation for this class was generated from the following files: