1#ifndef __BML_H
2#define __BML_H
3#include <vector>
4#include <string>
5#include <fstream>
6
7struct bml_node
8{
9 enum node_type {
10 CHILD,
11 ATTRIBUTE
12 };
13
14 bml_node();
15 bool parse_file(std::string filename);
16 void parse(std::ifstream &fd);
17 bml_node *find_subnode(std::string name);
18 void print();
19
20 std::string name;
21 std::string data;
22 int depth;
23 std::vector<bml_node> child;
24 node_type type;
25};
26
27#endif
28