This commit is contained in:
2025-05-13 02:46:21 +03:00
parent 143e16692e
commit 86914b7fcc
610 changed files with 92343 additions and 2 deletions
+24
View File
@@ -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;
}
}