25 #include "YProperty.h"
26 #include "YUIException.h"
35 case YUnknownPropertyType:
return "<Unknown>";
36 case YOtherProperty:
return "<Other>";
37 case YStringProperty:
return "String";
38 case YBoolProperty:
return "Bool";
39 case YIntegerProperty:
return "Integer";
45 return "<Undefined property type>";
72 if ( !
contains( propertyName, type ) )
83 for ( YPropertySet::const_iterator it = _properties.begin();
84 it != _properties.end();
87 if ( it->name() == propertyName )
98 for ( YPropertySet::const_iterator it = _properties.begin();
99 it != _properties.end();
102 if ( it->name() == propertyName )
104 if ( it->isReadOnly() )
107 if ( it->type() == type ||
108 it->type() == YOtherProperty )
122 _properties.push_back( prop );
138 YPropertySet::const_iterator
141 return _properties.begin();
144 YPropertySet::const_iterator
147 return _properties.end();
void check(const std::string &propertyName) const
void add(const YProperty &prop)
const_iterator propertiesBegin() const
bool contains(const std::string &propertyName) const
const_iterator propertiesEnd() const
std::string typeAsStr() const