2024-10-21 12:22:35 -04:00
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
|
2024-10-21 12:27:40 -04:00
|
|
|
#include "tree.hpp"
|
|
|
|
|
2024-10-21 12:22:35 -04:00
|
|
|
namespace vxorg {
|
|
|
|
|
2024-10-21 12:27:40 -04:00
|
|
|
struct VxHeavenItem {
|
|
|
|
std::string name;
|
|
|
|
// True if this item is also a sample
|
|
|
|
bool is_sample;
|
|
|
|
};
|
|
|
|
|
|
|
|
using VxHeavenTree = Tree<VxHeavenItem>;
|
2024-10-21 12:22:35 -04:00
|
|
|
|
2024-10-21 12:27:40 -04:00
|
|
|
std::string get_sample_name(VxHeavenTree::Node* node);
|
2024-10-21 12:22:35 -04:00
|
|
|
|
2024-10-21 12:27:40 -04:00
|
|
|
void parse_into_tree(VxHeavenTree& tree, std::istream& is);
|
|
|
|
} // namespace vxorg
|