Skip to content

Inscoper::SubDeviceDescription

SubDeviceDescription class provides sub-device information coming from drivers. More...

#include <SubDeviceDescription.h>

Public Functions

Name
SubDeviceDescription()
Default constructor.
const std::string & getName() const
Get the name of the sub-device.
void setName(const std::string & name)
Set the name of the sub-device.
std::vector< Inscoper::FunctionDescriptionPtr > getFunctions()
Get the function list of the sub-device.
Inscoper::FunctionDescriptionPtr getFunction(Inscoper::EFunctionType type)
Get the function corresponding to the given type.
void setFunction(Inscoper::EFunctionType type, const Inscoper::FunctionDescriptionPtr & function)
Set the function of the given type.
unsigned short getTag() const
Get the tag of the sub-device.
void setTag(unsigned short tag)
Set the tag of the sub-device.
Inscoper::ESubDeviceType getType() const
Get the type of the sub-device.
void setType(Inscoper::ESubDeviceType type)
Set the type of the sub-device.
std::vector< unsigned short > getParams()
Get the parameter tag list of the sub-device.

Detailed Description

class Inscoper::SubDeviceDescription;

SubDeviceDescription class provides sub-device information coming from drivers.

This class stores details about a specific functional unit within a device (sub-device), such as its name, type, tag, and associated control functions.

Public Functions Documentation

function SubDeviceDescription

SubDeviceDescription()

Default constructor.

Initializes a new instance of the SubDeviceDescription class.

function getName

const std::string & getName() const

Get the name of the sub-device.

Return: The name of the sub-device

Retrieves the display name of the sub-device.

function setName

void setName(
    const std::string & name
)

Set the name of the sub-device.

Parameters:

  • name : The name of the sub-device

Sets the display name of the sub-device.

function getFunctions

std::vector< Inscoper::FunctionDescriptionPtr > getFunctions()

Get the function list of the sub-device.

Return: The list of functions of the sub-device

Retrieves all functions associated with this sub-device.

function getFunction

Inscoper::FunctionDescriptionPtr getFunction(
    Inscoper::EFunctionType type
)

Get the function corresponding to the given type.

Parameters:

  • type : The function's type

Return: The function if found, nullptr otherwise

Retrieves a specific function by its functional type.

function setFunction

void setFunction(
    Inscoper::EFunctionType type,
    const Inscoper::FunctionDescriptionPtr & function
)

Set the function of the given type.

Parameters:

  • type : The function's type
  • function : The function to set

Assigns a function to this sub-device for a specific functional type.

function getTag

unsigned short getTag() const

Get the tag of the sub-device.

Return: The tag of the sub-device

Retrieves the unique tag of the sub-device.

function setTag

void setTag(
    unsigned short tag
)

Set the tag of the sub-device.

Parameters:

  • tag : The tag of the sub-device

Sets the unique tag of the sub-device.

function getType

Inscoper::ESubDeviceType getType() const

Get the type of the sub-device.

Return: The type of the sub-device

Retrieves the functional category of the sub-device.

function setType

void setType(
    Inscoper::ESubDeviceType type
)

Set the type of the sub-device.

Parameters:

  • type : The type of the sub-device

Sets the functional category of the sub-device.

function getParams

std::vector< unsigned short > getParams()

Get the parameter tag list of the sub-device.

Return: The list of associated parameter tags

Retrieves the list of parameter tags required by the declared functions of this sub-device.


Updated on 2026-04-02 at 10:55:36 +0200