6#include <QtCore/QMutex>
50 const QByteArray& elementId,
52 bool ensureElementCreated =
true)
override;
54 virtual bool RenameElement(
const QByteArray& oldElementId,
const QByteArray& newElementId)
override;
63 const QByteArray& elementId,
64 const QByteArray& interfaceName,
65 bool state =
true)
override;
67 const QByteArray& exportId,
68 const QByteArray& elementId)
override;
85 const QByteArray& elementId,
97 typedef QMap<QByteArray, ElementInfo> ComponentsMap;
99 ComponentsMap m_componentsMap;
103 QString m_description;
106#if QT_VERSION >= 0x060000
107 mutable QRecursiveMutex m_mutex;
109 mutable QMutex m_mutex;
Represents global address of component.
Standard implementation of registry.
EmbeddedRegistriesMap m_embeddedRegistriesMap
virtual bool SerializeExportedInterfaces(iser::IArchive &archive)
virtual bool RenameElement(const QByteArray &oldElementId, const QByteArray &newElementId) override
Rename an registry element.
virtual IRegistry * InsertEmbeddedRegistry(const QByteArray ®istryId) override
Insert embedded registry with specified ID.
virtual const ExportedInterfacesMap & GetExportedInterfacesMap() const override
Get access to information structure of exported interfaces.
virtual bool SerializeExportedComponents(iser::IArchive &archive)
virtual const ExportedElementsMap & GetExportedElementsMap() const override
Get access to map used to convert exported sub-elements to internal sub-element ID's.
virtual icomp::IRegistryElement * CreateRegistryElement(const QByteArray &elementId, const icomp::CComponentAddress &address) const
Called to create instance of registry element.
virtual bool RenameEmbeddedRegistry(const QByteArray &oldRegistryId, const QByteArray &newRegistryId) override
Rename a embedded registry.
virtual bool RemoveElementInfo(const QByteArray &elementId) override
Removes attribute info structure from this collection.
virtual ElementInfo * InsertElementInfo(const QByteArray &elementId, const icomp::CComponentAddress &address, bool ensureElementCreated=true) override
Insert new attribute info object to collection of attributes.
virtual bool RemoveEmbeddedRegistry(const QByteArray ®istryId) override
Remove embedded registry with specified ID.
virtual void SetElementExported(const QByteArray &exportId, const QByteArray &elementId) override
Set element to be exported.
virtual void SetElementInterfaceExported(const QByteArray &elementId, const QByteArray &interfaceName, bool state=true) override
Enable or disable exporting single or all interfaces of element.
virtual void SetDescription(const QString &description) override
set human readable description of this registry.
virtual void SetKeywords(const QString &keywords) override
Set keywords for this registry used for search.
virtual Ids GetElementIds() const override
Get ID list of existing elements.
virtual bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
virtual IRegistry * GetEmbeddedRegistry(const QByteArray ®istryId) const override
Get access to embedded registry using its ID.
virtual const ElementInfo * GetElementInfo(const QByteArray &elementId) const override
Get access to stored attribute info structure.
virtual quint32 GetMinimalVersion(int versionId) const override
Get minimal needed version to correct storing of this data.
virtual bool SerializeEmbeddedRegistries(iser::IArchive &archive)
QMap< QByteArray, RegistryPtr > EmbeddedRegistriesMap
virtual const QString & GetDescription() const override
Get human readable description of this registry.
virtual bool SerializeComponents(iser::IArchive &archive)
virtual const QString & GetKeywords() const override
Get keywords for this registry used for search.
istd::TDelPtr< IRegistry > RegistryPtr
virtual Ids GetEmbeddedRegistryIds() const override
Get list of IDs of embedded registries.
imod::TModelWrap< istd::TChangeDelegator< CRegistryElement > > Element
Represents element of registry describing component parameters.
Interface representing information stored in component registry.
QMap< QByteArray, QByteArray > ExportedInterfacesMap
Map assigning interface ID (undecorated) to component ID exporting this interface.
QMap< QByteArray, QByteArray > ExportedElementsMap
Map assigning exported sub-component names to internal subcomponent ID's.
This model wrapper provides a simple connection between a concrete istd::IChangeable implementation a...
Represents an input/output persistence archive for object serialization.
Pointer wrapper providing automatic deleting pointed object during destruction.
Package with interfaces and class used for components concept.
Describe information stored with each element.