Code Cleanup

- Merging Record and Task objects, step 1.
This commit is contained in:
Paul Beckingham 2011-08-07 16:23:23 -04:00
parent 6140f4af9d
commit 6d00337db3
5 changed files with 67 additions and 68 deletions

View file

@ -373,6 +373,30 @@ void Task::legacyParse (const std::string& line)
}
}
////////////////////////////////////////////////////////////////////////////////
// The format is:
//
// [ Att::composeF4 ... ] \n
//
std::string Task::composeF4 () const
{
std::string ff4 = "[";
bool first = true;
std::map <std::string, Att>::const_iterator it;
for (it = this->begin (); it != this->end (); ++it)
{
if (it->second.value () != "")
{
ff4 += (first ? "" : " ") + it->second.composeF4 ();
first = false;
}
}
ff4 += "]\n";
return ff4;
}
////////////////////////////////////////////////////////////////////////////////
std::string Task::composeCSV () const
{