Etterna 0.74.4
Loading...
Searching...
No Matches
XmlFileUtil.h
1#ifndef XML_FILE_UTIL_H
2#define XML_FILE_UTIL_H
3
4class RageFileBasic;
5class XNode;
6struct lua_State;
7
13namespace XmlFileUtil {
14auto
15LoadFromFileShowErrors(XNode& xml, const std::string& sFile) -> bool;
16auto
17LoadFromFileShowErrors(XNode& xml, RageFileBasic& f) -> bool;
18
19// Load/Save XML
20void
21Load(XNode* pNode, const std::string& sXml, std::string& sErrorOut);
22auto
23GetXML(const XNode* pNode, RageFileBasic& f, bool bWriteTabs = true) -> bool;
24auto
25GetXML(const XNode* pNode) -> std::string;
26auto
27SaveToFile(const XNode* pNode,
28 const std::string& sFile,
29 const std::string& sStylesheet = "",
30 bool bWriteTabs = true) -> bool;
31auto
32SaveToFile(const XNode* pNode,
34 const std::string& sStylesheet = "",
35 bool bWriteTabs = true) -> bool;
36
37void
38AnnotateXNodeTree(XNode* pNode, const std::string& sFile);
39void
40CompileXNodeTree(XNode* pNode, const std::string& sFile);
41auto
42XNodeFromTable(lua_State* L) -> XNode*;
43
44void
45MergeIniUnder(XNode* pFrom, XNode* pTo);
46} // namespace XmlFileUtil
47
48#endif
Definition RageFileBasic.h:10
Definition XmlFile.h:95
A little graphic to the left of the song's text banner in the MusicWheel.
Definition XmlFileUtil.h:13