37 const QByteArray& attributeId,
39 bool releaseFlag)
override;
51 typedef QMap<QByteArray, AttributePtr> AttributesMap;
52 AttributesMap m_attributesMap;
Basic implementation of an property container.
void SetAttributesFactory(const iser::IObjectFactory *factoryPtr)
CAttributesManager(const iser::IObjectFactory *factoryPtr=&CStandardAttributesFactory::GetInstance())
virtual bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
virtual bool RemoveAttribute(const QByteArray &attributeId) override
Remove an existing property from the object.
virtual bool InsertAttribute(const QByteArray &attributeId, iser::IObject *attributePtr, bool releaseFlag) override
Insert an property into the object.
virtual void RemoveAllAttributes() override
Reset properties.
virtual iser::IObject * GetAttribute(const QByteArray &attributeId) const override
Get property with the given index.
virtual AttributeIds GetAttributeIds() const override
Get list of all attribute IDs.
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),...
Represents an input/output persistence archive for object serialization.
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.