#ifndef __BML_H #define __BML_H #include #include #include struct bml_node { enum node_type { CHILD, ATTRIBUTE }; bml_node(); bool parse_file(std::string filename); void parse(std::ifstream &fd); bml_node *find_subnode(std::string name); void print(); std::string name; std::string data; int depth; std::vector child; node_type type; }; #endif