use GetName, GetValue, SetValue

This commit is contained in:
Glenn Maynard
2006-10-02 06:26:25 +00:00
parent f0fe542b2f
commit e3483ba3be
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ void BGAnimation::AddLayersFromAniDir( const RString &_sAniDir, const XNode *pNo
vector<RString> vsLayerNames; vector<RString> vsLayerNames;
FOREACH_CONST_Child( pNode, pLayer ) FOREACH_CONST_Child( pNode, pLayer )
{ {
if( strncmp(pLayer->m_sName, "Layer", 5) == 0 ) if( strncmp(pLayer->GetName(), "Layer", 5) == 0 )
vsLayerNames.push_back( pLayer->m_sName ); vsLayerNames.push_back( pLayer->GetName() );
} }
sort( vsLayerNames.begin(), vsLayerNames.end(), CompareLayerNames ); sort( vsLayerNames.begin(), vsLayerNames.end(), CompareLayerNames );
+2 -2
View File
@@ -53,10 +53,10 @@ void ExportStrings::LuaInformation()
pNode->AppendAttr( "xsi:schemaLocation", "http://www.stepmania.com Lua.xsd" ); pNode->AppendAttr( "xsi:schemaLocation", "http://www.stepmania.com Lua.xsd" );
XNode *pVersionNode = pNode->AppendChild( "Version" ); XNode *pVersionNode = pNode->AppendChild( "Version" );
pVersionNode->m_sValue = PRODUCT_ID_VER; pVersionNode->SetValue( "foo" );
XNode *pDateNode = pNode->AppendChild( "Date" ); XNode *pDateNode = pNode->AppendChild( "Date" );
pDateNode->m_sValue = DateTime::GetNowDate().GetString(); pDateNode->SetValue( DateTime::GetNowDate().GetString() );
XmlFileUtil::SaveToFile( pNode, "Lua.xml", "Lua.xsl" ); XmlFileUtil::SaveToFile( pNode, "Lua.xml", "Lua.xsl" );
+2 -2
View File
@@ -43,7 +43,7 @@ bool TitleTrans::Matches( const TitleFields &from, TitleFields &to )
void TitleTrans::LoadFromNode( const XNode* pNode ) void TitleTrans::LoadFromNode( const XNode* pNode )
{ {
ASSERT( pNode->m_sName == "Translation" ); ASSERT( pNode->GetName() == "Translation" );
FOREACH_CONST_Attr( pNode, attr ) FOREACH_CONST_Attr( pNode, attr )
{ {
@@ -148,7 +148,7 @@ void TitleSubst::Load(const RString &filename, const RString &section)
return; return;
FOREACH_Child( pGroup, child ) FOREACH_Child( pGroup, child )
{ {
if( child->m_sName != "Translation" ) if( child->GetName() != "Translation" )
continue; continue;
TitleTrans tr; TitleTrans tr;
+1 -1
View File
@@ -46,7 +46,7 @@ XNode* TrailID::CreateNode() const
void TrailID::LoadFromNode( const XNode* pNode ) void TrailID::LoadFromNode( const XNode* pNode )
{ {
ASSERT( pNode->m_sName == "Trail" ); ASSERT( pNode->GetName() == "Trail" );
RString sTemp; RString sTemp;