GlobalCorrector: added program to overwrite metrics in metrage [#METR-11762]

This commit is contained in:
Pavel Kartavyy 2014-07-07 19:55:39 +04:00
parent 8d928558dc
commit 146378633a

View File

@ -164,11 +164,15 @@ public:
return !(*this == other);
}
std::string toString()
std::string toString(char separator = '-') const
{
std::stringstream ss;
ss << year() << '-' << (month() / 10) << (month() % 10)
<< '-' << (day() / 10) << (day() % 10);
if (separator)
ss << year() << separator << (month() / 10) << (month() % 10)
<< separator << (day() / 10) << (day() % 10);
else
ss << year() << (month() / 10) << (month() % 10)
<< (day() / 10) << (day() % 10);
return ss.str();
}
};