Integration - TDB write operations

- TDB::gc rewritten.
- TDB::commit fixed.
- Corrected usage of handleRecurringTasks wrt TDB.
- Unit tests for TDB.
This commit is contained in:
Paul Beckingham
2009-06-15 00:52:24 -04:00
parent 314ce572e1
commit 7ff178cecc
12 changed files with 211 additions and 125 deletions

View File

@@ -57,16 +57,17 @@ Record::~Record ()
//
// [ Att::composeF4 ... ] \n
//
std::string Record::composeF4 ()
std::string Record::composeF4 () const
{
std::string ff4 = "[";
bool first = true;
foreach (att, (*this))
std::map <std::string, Att>::const_iterator it;
for (it = this->begin (); it != this->end (); ++it)
{
if (att->second.value () != "")
if (it->second.value () != "")
{
ff4 += (first ? "" : " ") + att->second.composeF4 ();
ff4 += (first ? "" : " ") + it->second.composeF4 ();
first = false;
}
}