32 #include "../Resources/xml_resource_document.h" 33 #include "../IOData/file_system.h" 42 class XMLResourceDocument;
43 class XMLResourceNode_Impl;
96 unsigned int flags = 0)
const;
113 std::shared_ptr<XMLResourceNode_Impl> impl;
XMLResourceDocument get_document()
Returns the resource document owning the resource.
I/O Device interface.
Definition: iodevice.h:50
std::string get_type() const
Returns the resource type.
DOM Element class.
Definition: dom_element.h:59
IODevice open_file(const std::string &filename, File::OpenMode mode=File::open_existing, unsigned int access=File::access_read, unsigned int share=File::share_all, unsigned int flags=0) const
Opens a file relative to the resource base path.
Virtual File System (VFS).
Definition: file_system.h:47
Generic read access.
Definition: file.h:67
bool operator==(const XMLResourceNode &other) const
Compares this resource to another resource.
std::string get_base_path() const
Returns the base path of the resource.
Open existing file. Fails if it does not exist.
Definition: file.h:99
All other sharing flags combined.
Definition: file.h:89
DomElement & get_element()
Returns the DOM element describing the resource.
OpenMode
File opening modes.
Definition: file.h:93
XML Resource Document.
Definition: xml_resource_document.h:48
Resource node for a XMLResourceDocument.
Definition: xml_resource_node.h:46
FileSystem get_file_system() const
Returns the file system to load resource from.
std::string get_name() const
Returns the name of the resource.