38 const QByteArray& attributeId,
51 typedef std::map<QByteArray, AttributePtr> AttributesMap;
52 AttributesMap m_attributesMap;
Basic implementation of an property container.
virtual AttributeIds GetAttributeIds() const
Get list of all attribute IDs.
void SetAttributesFactory(const iser::IObjectFactory *factoryPtr)
virtual void RemoveAllAttributes()
Reset properties.
CAttributesManager(const iser::IObjectFactory *factoryPtr=&CStandardAttributesFactory::GetInstance())
virtual iser::IObject * GetAttribute(const QByteArray &attributeId) const
Get attribute for the given ID.
virtual bool RemoveAttribute(const QByteArray &attributeId)
Remove an existing property from the object.
virtual bool Serialize(iser::IArchive &archive)
Load or store state of this object as a archive stream.
virtual bool InsertAttribute(const QByteArray &attributeId, istd::TOptDelPtr< iser::IObject > &&attributePtr)
Insert an property into the object.
static const CStandardAttributesFactory & GetInstance()
Common interface for a container of properties.
QSet< QByteArray > AttributeIds
Reflects the changes of observed objects as changes of some other object (over istd::IChangeable),...
Represent input/output persistence archive.
Common interface for factorisable model objects.
Common class for all classes which objects can be archived or restored from archive.
Generic interface for a factory.
Pointer wrapper providing activatable deleting pointed object during destruction.
This namespace containes implementations of attributes concept.