|
ImagingTools Core SDK
|
Interface for describing static information about a device type/class. More...
#include <IDeviceSpecification.h>
Public Types | |
| enum | DeviceCapabilities { DC_READ = 1 , DC_WRITE = 2 } |
| Binary flags for describing capabilities of a device. More... | |
Public Member Functions | |
| virtual QByteArray | GetClass () const =0 |
| Get device class. | |
| virtual QByteArray | GetTypeId () const =0 |
| Get unique device type ID. | |
| virtual QString | GetTypeName () const =0 |
| Get human-readable name of the device type. | |
| virtual const iattr::IAttributesProvider * | GetAttributes () const =0 |
| Get device static attributes provider. | |
| virtual const iprm::IParamsSet & | GetDefaultConfiguration () const =0 |
| Get the default device configuration. | |
| virtual bool | AreConfigurationAccepted (const iprm::IParamsSet &configuration) const =0 |
| Check if device configuration is valid. | |
| virtual int | GetCapabilities () const =0 |
| Get capability flags for the device. | |
| virtual const QByteArrayList & | GetSupportedCommands () const =0 |
| Get the list of commands supported by the device class. | |
Interface for describing static information about a device type/class.
IDeviceSpecification defines the static properties and capabilities of a device type or model. Unlike IDeviceInstance which represents a specific device instance at runtime, IDeviceSpecification describes what all devices of a particular type can do.
This interface provides:
Definition at line 66 of file IDeviceSpecification.h.
Binary flags for describing capabilities of a device.
These flags can be combined using bitwise OR to describe multiple capabilities.
| Enumerator | |
|---|---|
| DC_READ | Device supports read operations. |
| DC_WRITE | Device supports write operations. |
Definition at line 75 of file IDeviceSpecification.h.
|
pure virtual |
Check if device configuration is valid.
Validates whether a given configuration parameter set is acceptable for this device type. This can check for required parameters, valid value ranges, and parameter compatibility.
| configuration | Configuration to validate |
|
pure virtual |
Get device static attributes provider.
Returns the attributes provider that manages static attributes applicable to all devices of this type. May return nullptr if no static attributes are defined.
|
pure virtual |
Get capability flags for the device.
Returns a bitwise combination of DeviceCapabilities flags indicating what operations this device type supports.
|
pure virtual |
Get device class.
Returns the high-level category or class of the device (e.g., "Mouse", "Camera", "Sensor"). Devices in the same class typically share similar functionality.
|
pure virtual |
Get the default device configuration.
Returns the default configuration parameters for this device type. This configuration can be used as a starting point for device initialization.
|
pure virtual |
Get the list of commands supported by the device class.
Returns identifiers of all commands that can be executed on devices of this type via IDeviceAccessor::ExecuteCommand().
|
pure virtual |
Get unique device type ID.
Returns a unique identifier for this specific device type or model. This ID is used to distinguish between different models within the same device class.
|
pure virtual |
Get human-readable name of the device type.
Returns a user-friendly name suitable for display in user interfaces.