31 #include "../Resources/xml_resource_document.h" 32 #include "../../Core/IOData/file_system.h" 41 class XMLResourceDocument;
42 class XMLResourceNode_Impl;
81 unsigned int flags = 0)
const;
93 std::shared_ptr<XMLResourceNode_Impl> impl;
XMLResourceDocument get_document()
Returns the resource document owning the resource.
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.
FileSystem get_file_system() const
Returns the file system to load resource from.
I/O Device interface.
Definition: iodevice.h:49
All other sharing flags combined.
Definition: file.h:82
std::string get_base_path() const
Returns the base path of the resource.
std::string get_type() const
Returns the resource type.
bool operator==(const XMLResourceNode &other) const
Compares this resource to another resource.
DOM Element class.
Definition: dom_element.h:59
Virtual File System (VFS).
Definition: file_system.h:46
DomElement & get_element()
Returns the DOM element describing the resource.
Open existing file. Fails if it does not exist.
Definition: file.h:92
XML Resource Document.
Definition: xml_resource_document.h:47
Resource node for a XMLResourceDocument.
Definition: xml_resource_node.h:45
Generic read access.
Definition: file.h:60
OpenMode
File opening modes.
Definition: file.h:86
std::string get_name() const
Returns the name of the resource.