snes9x/bml.h

28 lines
450 B
C
Raw Normal View History

2018-04-24 21:16:22 +00:00
#ifndef __BML_H
#define __BML_H
#include <vector>
#include <string>
2019-06-03 00:09:52 +00:00
#include <fstream>
2018-04-24 21:16:22 +00:00
struct bml_node
2018-04-24 21:16:22 +00:00
{
enum node_type {
CHILD,
ATTRIBUTE
};
bml_node();
2019-06-03 00:09:52 +00:00
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;
2018-04-24 21:16:22 +00:00
int depth;
std::vector<bml_node> child;
node_type type;
};
2018-04-24 21:16:22 +00:00
#endif