*
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#include "IProperty.h"
|
||||
|
||||
namespace LifeCore
|
||||
{
|
||||
bool IProperty::ContainsAttribute(const String& name)
|
||||
{
|
||||
if(attributes.find(name) == attributes.end())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
int IProperty::AddAttribute(const String& name, const String& value)
|
||||
{
|
||||
attributes[name] = value;
|
||||
return SC_OK;
|
||||
}
|
||||
int IProperty::GetAttribute(const String& name, String& value)
|
||||
{
|
||||
if(attributes.find(name) == attributes.end())
|
||||
return SC_FAIL;
|
||||
|
||||
value = attributes[name];
|
||||
return SC_OK;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user