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;
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.
std::string get_base_path() const
Returns the base path of the resource.
Resource node for a XMLResourceDocument.
Definition: xml_resource_node.h:47
I/O Device interface.
Definition: iodevice.h:51
FileSystem get_file_system() const
Returns the file system to load resource from.
std::string get_name() const
Returns the name of the resource.
@ open_existing
Open existing file. Fails if it does not exist.
Definition: file.h:99
@ access_read
Generic read access.
Definition: file.h:67
DomElement & get_element()
Returns the DOM element describing the resource.
Virtual File System (VFS).
Definition: file_system.h:48
XML Resource Document.
Definition: xml_resource_document.h:49
OpenMode
File opening modes.
Definition: file.h:94
XMLResourceDocument get_document()
Returns the resource document owning the resource.
@ share_all
All other sharing flags combined.
Definition: file.h:89
DOM Element class.
Definition: dom_element.h:60
std::string get_type() const
Returns the resource type.
bool operator==(const XMLResourceNode &other) const
Compares this resource to another resource.