31 const QByteArray& elementId,
33 bool ensureElementCreated =
true)
override;
35 bool RenameElement(
const QByteArray& oldElementId,
const QByteArray& newElementId)
override;
44 const QByteArray& elementId,
45 const QByteArray& interfaceName,
46 bool state =
true)
override;
48 const QByteArray& exportId,
49 const QByteArray& elementId)
override;
65 const QByteArray& elementId,
77 typedef std::map<QByteArray, ElementInfo> ComponentsMap;
79 ComponentsMap m_componentsMap;
83 QString m_description;
Represents global address of component.
Standard implementation of registry.
void SetElementInterfaceExported(const QByteArray &elementId, const QByteArray &interfaceName, bool state=true) override
Enable or disable exporting single or all interfaces of element.
void SetElementExported(const QByteArray &exportId, const QByteArray &elementId) override
Set element to be exported.
const ElementInfo * GetElementInfo(const QByteArray &elementId) const override
Get access to stored attribute info structure.
EmbeddedRegistriesMap m_embeddedRegistriesMap
bool RenameEmbeddedRegistry(const QByteArray &oldRegistryId, const QByteArray &newRegistryId) override
Rename a embedded registry.
virtual bool SerializeExportedInterfaces(iser::IArchive &archive)
bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
virtual bool SerializeExportedComponents(iser::IArchive &archive)
const ExportedInterfacesMap & GetExportedInterfacesMap() const override
Get access to information structure of exported interfaces.
const QString & GetKeywords() const override
Get keywords for this registry used for search.
Ids GetElementIds() const override
Get ID list of existing elements.
const ExportedElementsMap & GetExportedElementsMap() const override
Get access to map used to convert exported sub-elements to internal sub-element ID's.
std::map< QByteArray, RegistryPtr > EmbeddedRegistriesMap
void SetDescription(const QString &description) override
set human readable description of this registry.
std::unique_ptr< IRegistry > RegistryPtr
IRegistry * InsertEmbeddedRegistry(const QByteArray ®istryId) override
Insert embedded registry with specified ID.
void SetKeywords(const QString &keywords) override
Set keywords for this registry used for search.
bool RenameElement(const QByteArray &oldElementId, const QByteArray &newElementId) override
Rename an registry element.
virtual std::unique_ptr< IRegistryElement > CreateRegistryElement(const QByteArray &elementId, const CComponentAddress &address) const
Called to create instance of registry element.
IRegistry * GetEmbeddedRegistry(const QByteArray ®istryId) const override
Get access to embedded registry using its ID.
const QString & GetDescription() const override
Get human readable description of this registry.
imod::TModelWrap< istd::TChangeDelegator< CRegistryElement > > Element
ElementInfo * InsertElementInfo(const QByteArray &elementId, const CComponentAddress &address, bool ensureElementCreated=true) override
Insert new attribute info object to collection of attributes.
bool RemoveElementInfo(const QByteArray &elementId) override
Removes attribute info structure from this collection.
virtual bool SerializeEmbeddedRegistries(iser::IArchive &archive)
virtual bool SerializeComponents(iser::IArchive &archive)
Ids GetEmbeddedRegistryIds() const override
Get list of IDs of embedded registries.
bool RemoveEmbeddedRegistry(const QByteArray ®istryId) override
Remove embedded registry with specified ID.
Interface representing information stored in component registry.
std::map< QByteArray, QByteArray > ExportedElementsMap
Map assigning exported sub-component names to internal subcomponent ID's.
std::map< QByteArray, QByteArray > ExportedInterfacesMap
Map assigning interface ID (undecorated) to component ID exporting this interface.
This model wrapper provides a simple connection between a concrete istd::IChangeable implementation a...
Represent input/output persistence archive.
Package with interfaces and class used for components concept.
Describe information stored with each element.