vxorg/vxheaven_parse.hpp

23 lines
449 B
C++
Raw Normal View History

#pragma once
#include <string>
2024-10-21 12:27:40 -04:00
#include "tree.hpp"
#include <filesystem>
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:27:40 -04:00
std::string get_sample_name(VxHeavenTree::Node* node);
std::filesystem::path get_sample_path(VxHeavenTree::Node* node);
2024-10-21 12:27:40 -04:00
void parse_into_tree(VxHeavenTree& tree, std::istream& is);
} // namespace vxorg