10#include <QtCore/QByteArray>
32 typedef QSet<QByteArray>
Ids;
83 const QByteArray& elementId,
85 bool ensureElementCreated =
true) = 0;
97 virtual bool RenameElement(
const QByteArray& oldElementId,
const QByteArray& newElementId) = 0;
148 const QByteArray& elementId,
149 const QByteArray& interfaceName,
150 bool state =
true) = 0;
158 const QByteArray& exportId,
159 const QByteArray& elementId) = 0;
Represents global address of component.
Interface representing information stored in component registry.
virtual IRegistry * InsertEmbeddedRegistry(const QByteArray ®istryId)=0
Insert embedded registry with specified ID.
virtual void SetKeywords(const QString &keywords)=0
Set keywords for this registry used for search.
virtual const ExportedElementsMap & GetExportedElementsMap() const =0
Get access to map used to convert exported sub-elements to internal sub-element ID's.
virtual bool RemoveEmbeddedRegistry(const QByteArray ®istryId)=0
Remove embedded registry with specified ID.
virtual bool RenameElement(const QByteArray &oldElementId, const QByteArray &newElementId)=0
Rename an registry element.
virtual const QString & GetKeywords() const =0
Get keywords for this registry used for search.
virtual const ExportedInterfacesMap & GetExportedInterfacesMap() const =0
Get access to information structure of exported interfaces.
virtual Ids GetEmbeddedRegistryIds() const =0
Get list of IDs of embedded registries.
virtual void SetDescription(const QString &description)=0
set human readable description of this registry.
virtual const ElementInfo * GetElementInfo(const QByteArray &elementId) const =0
Get access to stored attribute info structure.
virtual ElementInfo * InsertElementInfo(const QByteArray &elementId, const CComponentAddress &address, bool ensureElementCreated=true)=0
Insert new attribute info object to collection of attributes.
virtual void SetElementInterfaceExported(const QByteArray &elementId, const QByteArray &interfaceName, bool state=true)=0
Enable or disable exporting single or all interfaces of element.
virtual bool RemoveElementInfo(const QByteArray &elementId)=0
Removes attribute info structure from this collection.
std::map< QByteArray, QByteArray > ExportedElementsMap
Map assigning exported sub-component names to internal subcomponent ID's.
virtual const QString & GetDescription() const =0
Get human readable description of this registry.
virtual void SetElementExported(const QByteArray &exportId, const QByteArray &elementId)=0
Set element to be exported.
virtual Ids GetElementIds() const =0
Get ID list of existing elements.
virtual bool RenameEmbeddedRegistry(const QByteArray &oldRegistryId, const QByteArray &newRegistryId)=0
Rename a embedded registry.
virtual IRegistry * GetEmbeddedRegistry(const QByteArray ®istryId) const =0
Get access to embedded registry using its ID.
std::unique_ptr< IRegistryElement > ElementPtr
std::map< QByteArray, QByteArray > ExportedInterfacesMap
Map assigning interface ID (undecorated) to component ID exporting this interface.
Common class for all classes which objects can be archived or restored from archive.
Package with interfaces and class used for components concept.
Describe information stored with each element.
CComponentAddress address
Address of component used to create its instance.
ElementPtr elementPtr
Pointer to registry element.