void DanApi::load_tag_file(){ DataNode data = JsonDataNode::from_file( "tags/" + get_shorthand() + ".json" ); if( data ) tag_handler.addAll( data.begin(), data.end(), [&](DataNode n){ return parse_tag(n); } ); else cout << "Could not load tags for " << get_shorthand() << endl; }
void DataWriter::Write(const DataNode &node) { for(int i = 0; i < node.Size(); ++i) WriteToken(node.Token(i)); Write(); if(node.begin() != node.end()) { BeginChild(); { for(const DataNode &child : node) Write(child); } EndChild(); } }