2018-04-24 23:16:22 +02:00
|
|
|
#ifndef __BML_H
|
|
|
|
#define __BML_H
|
|
|
|
#include <vector>
|
2019-05-15 00:42:41 +02:00
|
|
|
#include <string>
|
2018-04-24 23:16:22 +02:00
|
|
|
|
2018-04-26 02:29:26 +02:00
|
|
|
const int bml_attr_type = -2;
|
|
|
|
|
2019-05-15 00:42:41 +02:00
|
|
|
struct bml_node
|
2018-04-24 23:16:22 +02:00
|
|
|
{
|
2019-05-15 00:42:41 +02:00
|
|
|
bml_node();
|
|
|
|
bool parse_file(const char *filename);
|
|
|
|
void parse(char *buffer);
|
|
|
|
bml_node *find_subnode(std::string name);
|
|
|
|
void print();
|
|
|
|
|
|
|
|
static const int bml_attr_type = -2;
|
|
|
|
std::string name;
|
|
|
|
std::string data;
|
2018-04-24 23:16:22 +02:00
|
|
|
int depth;
|
2019-05-15 00:42:41 +02:00
|
|
|
std::vector<bml_node> child;
|
|
|
|
};
|
2018-04-24 23:16:22 +02:00
|
|
|
|
|
|
|
#endif
|