updated CppParser

This commit is contained in:
Guenter Obiltschnig
2012-10-15 07:50:06 +00:00
parent 4768beeb98
commit 64a4caaf42
38 changed files with 234 additions and 57 deletions

View File

@@ -1,7 +1,7 @@
//
// Attributes.cpp
//
// $Id: //poco/1.3/CppParser/src/Attributes.cpp#1 $
// $Id: //poco/1.4/CppParser/src/Attributes.cpp#2 $
//
// Library: CppParser
// Package: Attributes
@@ -143,6 +143,14 @@ void Attributes::set(const std::string& name, const std::string& value)
}
void Attributes::remove(const std::string& name)
{
AttrMap::iterator it = _map.find(name);
if (it != _map.end())
_map.erase(it);
}
const std::string& Attributes::operator [] (const std::string& name) const
{
AttrMap::const_iterator it = _map.find(name);