void setTag(const std::string &tag)
void setSource(const std::string &source)
void parse()
Parse the entire document.
static OTMLDocumentPtr create()
Create a new OTML document for filling it with nodes.
static OTMLDocumentPtr parse(const std::string &fileName)
Parse OTML from a file.
bool save(const std::string &fileName)
Save this document to a file.
std::string resolvePath(const std::string &path)
static std::string emitNode(const OTMLNodePtr &node, int currentDepth=-1)
Emits a node and it's children to a std::string.
ResourceManager g_resources
std::string emit()
Emits this document and all it's children to a std::string.
void readFileStream(const std::string &fileName, std::iostream &out)
bool writeFileContents(const std::string &fileName, const std::string &data)