1 #ifndef DATATOOLS_I_TREE_DUMP_H 3 #define DATATOOLS_I_TREE_DUMP_H 12 #pragma clang diagnostic push 13 #pragma clang diagnostic ignored "-Wshadow" 16 #pragma GCC diagnostic push 17 #pragma GCC diagnostic ignored "-Wshadow" 19 #include <boost/property_tree/ptree.hpp> 21 #pragma GCC diagnostic pop 24 #pragma clang diagnostic pop 42 static const std::string &
item();
46 static const std::string &
item(
bool last_,
bool skip_);
51 const std::string & indent_ =
"",
52 const bool inherit_ =
false);
62 void export_to(boost::property_tree::ptree &);
68 static boost::property_tree::ptree
force_inheritance(
const boost::property_tree::ptree &);
87 static std::ostream &
skip_tag(std::ostream & out_);
89 static std::ostream &
last_tag(std::ostream & out_);
91 static std::ostream &
tag(std::ostream & out_);
94 virtual void print_tree(std::ostream & out_ = std::clog,
95 const boost::property_tree::ptree & options_ =
empty_options())
const;
98 virtual void tree_dump(std::ostream & out_ = std::clog,
99 const std::string & title_ =
"",
100 const std::string & indent_ =
"",
101 bool inherit_ =
false)
const;
105 const std::string & json_options_ =
"")
const;
109 const char * json_options_ =
nullptr)
const;
112 const std::string & title_ =
"",
113 const std::string & indent_ =
"",
114 const bool inherit_ =
false)
const;
117 const std::string & title_ =
"")
const;
120 const std::string & title_ =
"",
121 const std::string & indent_ =
"")
const;
130 friend std::ostream &
operator<<(std::ostream & out_,
146 friend std::ostream&
operator<<(std::ostream & out_,
167 #endif // DATATOOLS_I_TREE_DUMP_H
#define DR_CLASS_INIT(Introspectable)
Inform Camp that class Introspectable exists and trigger the automatic registration of dedicated refl...
Definition: reflection_interface.h:149
#define DR_CLASS_RTTI()
Declare Camp RTTI within class declaration.
Definition: reflection_interface.h:46