Class logger::JsonEncoder

class JsonEncoder : private boost::static_visitor<rapidjson::Value>

Public Functions

JsonEncoder()
rapidjson::Value operator()(Duration const &duration)
rapidjson::Value operator()(DurationTree const &duration_tree)
rapidjson::Value childNodes(int const parent_depth)
rapidjson::Value timer(DurationTreeMap::const_reference kv_pair)
std::string str(DurationTreeMap::const_reference kv_pair)

Private Functions

JsonEncoder(JsonEncoder &json_encoder, DurationTreeNodes::const_iterator begin, DurationTreeNodes::const_iterator end)

Private Members

std::shared_ptr<rapidjson::Document> doc_
rapidjson::Document::AllocatorType &alloc_
DurationTreeNodes::const_iterator begin_
DurationTreeNodes::const_iterator end_