17 #ifndef HEADER_SUPERTUX_UTIL_READER_DOCUMENT_HPP 18 #define HEADER_SUPERTUX_UTIL_READER_DOCUMENT_HPP 21 #include <sexp/value.hpp> 23 #include "util/reader_object.hpp" 30 static ReaderDocument from_stream(std::istream& stream,
const std::string& filename =
"<stream>");
45 const sexp::Value& get_sexp()
const {
return m_sx; }
48 std::string m_filename;
ReaderObject get_root() const
Returns the root object.
Definition: reader_document.cpp:55
Definition: reader_object.hpp:30
std::string get_directory() const
Returns the directory of the document.
Definition: reader_document.cpp:67
const std::string & get_filename() const
Returns the filename of the document.
Definition: reader_document.cpp:61
The ReaderDocument holds a parsed document in memory, access to it's content is provided by get_root(...
Definition: reader_document.hpp:27