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