Enhancement - Object rename prior to integration

- T -> T2
- TDB -> TDB2
This commit is contained in:
Paul Beckingham 2009-05-31 01:10:39 -04:00
parent 766c2d3620
commit fe4c8f3a9d
12 changed files with 96 additions and 81 deletions

View file

@ -53,12 +53,6 @@ Record::Record (const std::string& input)
////////////////////////////////////////////////////////////////////////////////
Record& Record::operator= (const Record& other)
{
throw std::string ("unimplemented Record:operator=");
if (this != &other)
{
*this = other;
}
return *this;
}
@ -88,25 +82,23 @@ std::string Record::composeF4 ()
//
// start --> name --> : --> " --> value --> " --> end
// ^ |
// |________________________________|
// +------------- \s <--------------+
//
void Record::parse (const std::string& input)
{
Nibbler n (input);
std::string line;
if (n.skip ('[') && n.getUntil (']', line))
if (n.skip ('[') &&
n.getUntil (']', line) &&
n.skip (']') &&
n.depleted ())
{
Nibbler nl (line);
bool first = true;
Att a;
while (a.parse (nl))
{
if (first)
first = false;
else
nl.skip (' ');
nl.skip (' ');
(*this)[a.name ()] = a;
}