mirror of
https://github.com/libretro/snes9x.git
synced 2024-12-02 22:36:20 +00:00
27 lines
426 B
C++
27 lines
426 B
C++
#ifndef __BML_H
|
|
#define __BML_H
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
struct bml_node
|
|
{
|
|
enum node_type {
|
|
CHILD,
|
|
ATTRIBUTE
|
|
};
|
|
|
|
bml_node();
|
|
bool parse_file(const char *filename);
|
|
void parse(char *buffer);
|
|
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
|