32 #include "../api_core.h"
33 #include "../Resources/xml_resource_node.h"
34 #include "../IOData/file_system.h"
44 class XMLResourceNode;
46 class XMLResourceDocument_Impl;
86 bool resource_exists(
const std::string &resource_id)
const;
89 std::vector<std::string> get_section_names()
const;
93 std::vector<std::string> get_resource_names()
const;
95 std::vector<std::string> get_resource_names(
const std::string §ion)
const;
99 std::vector<std::string> get_resource_names_of_type(
const std::string &type)
const;
101 std::vector<std::string> get_resource_names_of_type(
102 const std::string &type,
103 const std::string §ion)
const;
107 const std::string &resource_id)
const;
110 bool get_boolean_resource(
111 const std::string &resource_id,
112 bool default_value)
const;
115 int get_integer_resource(
116 const std::string &resource_id,
117 int default_value)
const;
120 std::string get_string_resource(
121 const std::string &resource_id,
122 const std::string &default_value)
const;
141 XMLResourceNode create_resource(
const std::string &resource_id,
const std::string &type);
144 void destroy_resource(
const std::string &resource_id);
147 void save(
const std::string &filename);
153 void save(
const std::string &filename,
const FileSystem &file_system);
161 void load(
const std::string &filename);
167 void load(
const std::string &filename,
const FileSystem &file_system);
185 std::shared_ptr<XMLResourceDocument_Impl> impl;
188 friend class XMLResourceDocument_Impl;
I/O Device interface.
Definition: iodevice.h:51
Virtual File System (VFS).
Definition: file_system.h:48
XML Resource Document.
Definition: xml_resource_document.h:49
Resource node for a XMLResourceDocument.
Definition: xml_resource_node.h:47