|
ImagingTools Core SDK
|
Interface for modifying composite device instance information. More...
#include <IEditableCompositeDeviceInstance.h>
Public Member Functions | |
| virtual QByteArray | AddSubDevice (const QByteArray &deviceTypeId, const QString &name, const QString &description=QString(), const istd::IChangeable *defaultValuePtr=nullptr, const QByteArray &proposedId=QByteArray())=0 |
| Add new sub-device to the composite. | |
| virtual bool | RemoveSubDevice (const QByteArray &subDeviceId)=0 |
| Remove sub-device from the composite. | |
Public Member Functions inherited from imtdev::ICompositeDeviceInstance | |
| virtual const ICompositeDeviceSpecification * | GetCompositeDeviceSpecification () const =0 |
| Get composite device specification. | |
| virtual QSet< QByteArray > | GetSupportedSubDeviceTypeIds () const =0 |
| Get supported sub-device type IDs. | |
| virtual const imtbase::ICollectionInfo & | GetSubDeviceList () const =0 |
| Get the list of available sub-devices. | |
| virtual const IDeviceInstance * | GetSubDeviceInstance (const QByteArray &subDeviceId) const =0 |
| Get device instance info of specific sub-device. | |
Public Member Functions inherited from imtdev::IDeviceInstance | |
| virtual const IDeviceSpecification & | GetDeviceSpecification () const =0 |
| Get device static info associated with device instance. | |
| virtual QByteArray | GetIdentifier (int identifierType) const =0 |
| Get the device identifier of the given type. | |
| virtual const iser::IVersionInfo & | GetVersion () const =0 |
| Get device instance version information. | |
| virtual const iattr::IAttributesProvider * | GetAttributes () const =0 |
| Get device instance attributes provider. | |
Additional Inherited Members | |
Public Types inherited from imtdev::IDeviceInstance | |
| enum | IdentifierTypes { IT_SERIAL } |
| Types of device identifiers. More... | |
| enum | VersionIds { VI_FIRMWARE_VERSION_MAJOR = iser::IVersionInfo::UserVersionId , VI_FIRMWARE_VERSION_MINOR , VI_FIRMWARE_VERSION_PATCH , VI_HARDWARE_VERSION_MAJOR , VI_HARDWARE_VERSION_MINOR , VI_HARDWARE_VERSION_PATCH } |
| Version information identifiers. More... | |
Interface for modifying composite device instance information.
IEditableCompositeDeviceInstance extends ICompositeDeviceInstance to provide mutable access to the hierarchical device structure. It enables dynamic addition and removal of sub-devices within a composite device instance at runtime.
This interface is essential for:
Definition at line 89 of file IEditableCompositeDeviceInstance.h.
|
pure virtual |
Add new sub-device to the composite.
Creates and adds a new sub-device instance with the specified type and properties. The device type must be in the list of supported sub-device types for this composite.
| deviceTypeId | Type identifier of the sub-device to create |
| name | Human-readable name for the sub-device |
| description | Optional description of the sub-device |
| defaultValuePtr | Optional default configuration for the sub-device |
| proposedId | Optional proposed identifier for the sub-device; if empty, an ID will be generated automatically |
Implemented in imtdev::CCompositeDeviceInstanceBase.
|
pure virtual |
Remove sub-device from the composite.
Removes an existing sub-device from the composite device structure.
| subDeviceId | Unique identifier of the sub-device to remove |
Implemented in imtdev::CCompositeDeviceInstanceBase.