Enhancement - Record accessors

- Implemented a variety of get/set routines for Record.
This commit is contained in:
Paul Beckingham
2009-05-23 18:51:37 -04:00
parent 0eff6fa2b1
commit 2e5e20e3e5
4 changed files with 63 additions and 24 deletions

View File

@@ -215,21 +215,6 @@ void T::setAttribute (const std::string& name, const std::string& value)
mAttributes[name] = value;
}
////////////////////////////////////////////////////////////////////////////////
void T::setAttributes (const std::map <std::string, std::string>& attributes)
{
foreach (i, attributes)
{
if (i->first.find (' ') != std::string::npos)
throw std::string ("An attribute name may not contain spaces");
if (i->second.find (' ') != std::string::npos)
throw std::string ("An attribute value may not contain spaces");
mAttributes[i->first] = i->second;
}
}
////////////////////////////////////////////////////////////////////////////////
void T::removeAttribute (const std::string& name)
{