Go to the documentation of this file.
5 typedef std::map<std::string, Core::Property*>
PropertyMap;
11 template <
typename T = Core::PropertyContainer>
23 Core::PropertyValueMap::const_iterator it;
24 for (it = pvm.begin(); it != pvm.end(); ++it)
38 t->getPropertyMap(pm);
39 Core::PropertyMap::const_iterator it;
40 for (it = pm.begin(); it != pm.end(); ++it)
43 std::string pName = it->first;
59 template <
typename PropType>
PropertyBundle< T > & operator=(const PropertyBundle< T > &other)
Definition: PropertyBundle.h:65
std::unordered_map< std::string, Core::Property * > PropertyMap
Definition: PropertyValue.h:25
std::map< std::string, Core::PropertyValue > PropertyValueMap
Definition: PropertyBundle.h:6
bool hasSameValuesAs(const PropertyContainer *container) const
Returns 'true' if all values in 'container' match the corresponding property in this PropertyContaine...
bool addProperty(Core::Property *p, const std::string &name)
PropertyBundle(const PropertyBundle< T > &other)
Copy constructor.
Definition: PropertyBundle.h:56
PropertyBundle()
Creates a PropertyBundle from a PropertyContainer type and copies all properties from the PropertyCon...
Definition: PropertyBundle.h:16
void addPropertiesFrom(const Core::PropertyContainer *other)
Adds copy of all properties from other to this PropertyContainer.
bool operator==(const PropertyBundle< T > &other) const
Definition: PropertyBundle.h:74
bool addProperty(const std::string &name, const Core::Variant &defaultValue)
Adds a property to the bundle. Returns 'true' on success, 'false' on failure.
Definition: PropertyBundle.h:60
std::map< std::string, Core::Property * > PropertyMap
Definition: PropertyBundle.h:5
Definition: PropertyContainer.h:93
static bool getRegisteredProperties(Base::Type t, Core::PropertyValueMap &pvm)
Returns the properties with default values of type t;.
bool operator!=(const PropertyBundle< T > &other) const
Definition: PropertyBundle.h:76
static void registerProperties(Base::Type t, const Core::PropertyValueMap &pvm)
Registers the properties with default values for type 't'.
void removeAllProperties()
Removes all properties from the PropertyContainer and deletes them.
virtual Core::Variant getVariant(void) const =0
Base::Type propertyType
Definition: PropertyValue.h:20
Core::Variant value
Definition: PropertyValue.h:21
Definition: PropertyValue.h:13
Definition: Property.h:72
std::string propertyName
Definition: PropertyValue.h:19
virtual Type getTypeId(void) const
Definition: PropertyBundle.h:13
std::unordered_map< std::string, Core::PropertyValue > PropertyValueMap
Definition: PropertyValue.h:26