HOG2
|
Simple class that alows for building a tree of data that can be serialized into Json format. More...
#include <Json.h>
Classes | |
class | Node |
class | NodeValue |
Public Member Functions | |
Json () | |
~Json () | |
std::shared_ptr< Node > | addChild (std::string) |
template<typename T > | |
std::shared_ptr< Node > | addChild (std::string, T) |
Private Attributes | |
std::unique_ptr< std::vector< std::shared_ptr< Node > > > | root |
Friends | |
std::ostream & | operator<< (std::ostream &, Json const &) |
std::ostream & | operator<< (std::ostream &, NodeValue const &) |
Simple class that alows for building a tree of data that can be serialized into Json format.
std::shared_ptr< Json::Node > Json::addChild | ( | std::string | name | ) |
std::shared_ptr< Json::Node > Json::addChild | ( | std::string | name, |
T | val | ||
) |
|
friend |
|
friend |
|
private |
Definition at line 91 of file Json.h.
Referenced by addChild(), and operator<<().