Simplify.

This commit is contained in:
Steve Checkoway
2006-10-01 14:02:24 +00:00
parent f73100705b
commit b7ce93ffad
5 changed files with 11 additions and 24 deletions
+2 -15
View File
@@ -35,19 +35,6 @@ typedef multimap<RString,XNode*> XNodes;
Var##Iter != (pNode)->m_childs.end(); \
++Var##Iter )
// display optional environment
struct XMLDisplayOptions
{
XMLDisplayOptions( const RString &sStylesheet = "", bool bWriteTabs = true )
{
m_sStylesheet = sStylesheet;
m_bWriteTabs = bWriteTabs;
}
RString m_sStylesheet; // empty string = no stylesheet
bool m_bWriteTabs; // if false, don't write tab indent characters
};
// XMLNode structure
class XNode
{
@@ -76,8 +63,8 @@ public:
bool GetXML( RageFileBasic &f, bool bWriteTabs = true ) const;
RString GetXML() const;
bool SaveToFile( const RString &sFile, const XMLDisplayOptions &opt = XMLDisplayOptions() ) const;
bool SaveToFile( RageFileBasic &f, const XMLDisplayOptions &opt = XMLDisplayOptions() ) const;
bool SaveToFile( const RString &sFile, const RString &sStylesheet = "", bool bWriteTabs = true ) const;
bool SaveToFile( RageFileBasic &f, const RString &sStylesheet = "", bool bWriteTabs = true ) const;
// in own attribute list
const RString *GetAttr( const RString &sAttrName ) const;