Preparing for a new #TAG, "WARNINGS".

There needs to be a place for warnings on
a stepfile without using #TITLE, #SUBTITLE,
or #ARTIST. This tag will hopefully be that new place.

No version or cache incrementing yet: it's still
not complete. Still, what's here shouldn't harm anything.
This commit is contained in:
Jason Felds
2011-07-07 11:48:33 -04:00
parent a40fde4ab0
commit fc19060491
4 changed files with 55 additions and 0 deletions
+32
View File
@@ -98,6 +98,35 @@ public:
/** @brief The stringified list of attacks. */
vector<RString> m_sAttackString;
set<RString> GetWarnings() const
{
return this->chartWarnings;
}
RString GetWarningsToSetString() const
{
RString ret = "";
set<RString> tmp = this->GetWarnings();
unsigned index = 0;
FOREACHS_CONST(RString, tmp, s)
{
ret += *s;
if (++index < tmp.size())
ret += ",";
}
return ret;
}
void SetWarning(const RString warning)
{
this->chartWarnings.insert(warning);
}
void EraseWarnings()
{
this->chartWarnings.clear();
}
void SetFilename( RString fn ) { m_sFilename = fn; }
RString GetFilename() const { return m_sFilename; }
void SetSavedToDisk( bool b ) { DeAutogen(); m_bSavedToDisk = b; }
@@ -194,6 +223,9 @@ private:
bool m_bAreCachedRadarValuesJustLoaded;
/** @brief The name of the person who created the Steps. */
RString m_sCredit;
/** @brief The list of warnings found in a chart. */
set<RString> chartWarnings;
};
#endif