2 #pragma warning(disable : 4251) 9 typedef std::map<std::string, Core::Property*>
PropertyMap;
15 template <
typename T = Core::PropertyContainer>
27 Core::PropertyValueMap::const_iterator it;
28 for (it = pvm.begin(); it != pvm.end(); ++it)
42 t->getPropertyMap(pm);
43 Core::PropertyMap::const_iterator it;
44 for (it = pm.begin(); it != pm.end(); ++it)
47 std::string pName = it->first;
63 template <
typename PropType>
bool operator==(const PropertyBundle< T > &other) const
Definition: PropertyBundle.h:78
std::map< std::string, Core::PropertyValue > PropertyValueMap
Definition: PropertyBundle.h:10
PropertyBundle(const PropertyBundle< T > &other)
Copy constructor.
Definition: PropertyBundle.h:60
static bool getRegisteredProperties(Base::Type t, Core::PropertyValueMap &pvm)
Returns the properties with default values of type t;.
PropertyBundle()
Creates a PropertyBundle from a PropertyContainer type and copies all properties from the PropertyCon...
Definition: PropertyBundle.h:20
Definition: PropertyContainer.h:101
Definition: PropertyBundle.h:16
Core::PropertyText name
Definition: CoreDocument.h:143
std::map< std::string, Core::Property * > PropertyMap
Definition: PropertyBundle.h:9
virtual Type getTypeId(void) const
Core::Variant value
Definition: PropertyValue.h:24
std::string propertyName
Definition: PropertyValue.h:22
static void registerProperties(Base::Type t, const Core::PropertyValueMap &pvm)
Registers the properties with default values for type 't'.
std::unordered_map< std::string, Core::Property * > PropertyMap
Definition: PropertyValue.h:28
std::unordered_map< std::string, PropertyValue > PropertyValueMap
Definition: PropertyValue.h:29
bool addProperty(Core::Property *p, const std::string &name)
bool hasSameValuesAs(const PropertyContainer *container) const
Returns 'true' if all values in 'container' match the corresponding property in this PropertyContaine...
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:64
Definition: Property.h:81
virtual Core::Variant getVariant(void) const =0
PropertyBundle< T > & operator=(const PropertyBundle< T > &other)
Definition: PropertyBundle.h:69
Base::Type propertyType
Definition: PropertyValue.h:23
Definition: PropertyValue.h:15
bool operator!=(const PropertyBundle< T > &other) const
Definition: PropertyBundle.h:80
void addPropertiesFrom(const Core::PropertyContainer *other)
Adds copy of all properties from other to this PropertyContainer.
void removeAllProperties()
Removes all properties from the PropertyContainer and deletes them.