mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-12-18 07:11:50 +01:00
93bc3a8a7d
- Don't use a magic depth number for attributes. - C++ification of bml parser. - Fix MSVC build.
28 lines
450 B
C++
28 lines
450 B
C++
#ifndef __BML_H
|
|
#define __BML_H
|
|
#include <vector>
|
|
#include <string>
|
|
#include <fstream>
|
|
|
|
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<bml_node> child;
|
|
node_type type;
|
|
};
|
|
|
|
#endif
|