Skip to content

Inscoper::ChildStatusParam

ChildStatusParam class represents a dependent status parameter. More...

#include <ChildStatusParam.h>

Inherits from Inscoper::ParentStatusParam, Inscoper::StatusParam

Public Functions

Name
ChildStatusParam(const ChildStatusParam & other)
Copy constructor.
ChildStatusParam(ChildStatusParam && other)
Move constructor.
ChildStatusParam & operator=(const ChildStatusParam & other)
Copy assignment operator.
ChildStatusParam & operator=(ChildStatusParam && other)
Move assignment operator.
ChildStatusParam(const Inscoper::SubDeviceId & subDeviceId, const ParentStatusParamPtr & parent, EOperation operation, double operand)
Constructor with parent, operation, and operand.
ChildStatusParam(const Inscoper::SubDeviceId & subDeviceId, const ParentStatusParamPtr & parent, EOperation operation, double operand, unsigned short tag)
Constructor with parent, operation, operand, and tag.
const ParentStatusParamPtr & getParent()
Get parent parameter.
void setParent(const ParentStatusParamPtr & parent)
Set parent parameter.
EOperation getOperation()
Get operation.
void setOperation(EOperation operation)
Set operation.
double getOperand()
Get operand.
void setOperand(double operand)
Set operand.
unsigned short getTag()
Get tag.
void setTag(unsigned short tag)
Set tag.
virtual std::shared_ptr< StatusParam > clone() override
Clone object.
virtual bool equals(const std::shared_ptr< StatusParam > & other) override
Check equality.

Additional inherited members

Public Functions inherited from Inscoper::ParentStatusParam

Name
virtual unsigned int getModifierIndex()
Get modifiable parameter identifier.

Protected Functions inherited from Inscoper::ParentStatusParam

Name
ParentStatusParam(const ParentStatusParam & other)
Copy constructor.
ParentStatusParam(ParentStatusParam && other)
Move constructor.
ParentStatusParam(const Inscoper::SubDeviceId & subDeviceId)
Constructor with sub-device ID.

Public Functions inherited from Inscoper::StatusParam

Name
StatusParam(const StatusParam & other)
Copy constructor.
StatusParam(StatusParam && other)
Move constructor.
StatusParam(const Inscoper::SubDeviceId & subDeviceId)
Constructor from sub-device ID.
StatusParam(const Inscoper::SubDeviceId & subDeviceId, const std::string & value)
Constructor from sub-device ID and string value.
StatusParam(const Inscoper::SubDeviceId & subDeviceId, unsigned char value)
Constructor from sub-device ID and unsigned char value.
StatusParam(const Inscoper::SubDeviceId & subDeviceId, char value)
Constructor from sub-device ID and char value.
StatusParam(const Inscoper::SubDeviceId & subDeviceId, unsigned short value)
Constructor from sub-device ID and unsigned short value.
StatusParam(const Inscoper::SubDeviceId & subDeviceId, short value)
Constructor from sub-device ID and short value.
StatusParam(const Inscoper::SubDeviceId & subDeviceId, unsigned int value)
Constructor from sub-device ID and unsigned int value.
StatusParam(const Inscoper::SubDeviceId & subDeviceId, int value)
Constructor from sub-device ID and int value.
StatusParam(const Inscoper::SubDeviceId & subDeviceId, unsigned long long int value)
Constructor from sub-device ID and unsigned long long value.
StatusParam(const Inscoper::SubDeviceId & subDeviceId, long long int value)
Constructor from sub-device ID and long long value.
StatusParam(const Inscoper::SubDeviceId & subDeviceId, float value)
Constructor from sub-device ID and float value.
StatusParam(const Inscoper::SubDeviceId & subDeviceId, double value)
Constructor from sub-device ID and double value.
StatusParam(const Inscoper::SubDeviceId & subDeviceId, bool value)
Constructor from sub-device ID and boolean value.
StatusParam(const Inscoper::SubDeviceId & subDeviceId, const char * value)
Constructor from sub-device ID and C-string value.
~StatusParam()
Destructor.
const Inscoper::SubDeviceId getSubDeviceId() const
Get sub-device ID.
void setSubDeviceId(const Inscoper::SubDeviceId & subDeviceId)
Set sub-device ID.
bool hasValue()
Check if the status parameter has a value.
std::string getStringValue()
Get value as string.
unsigned char getUnsignedCharValue()
Get value as unsigned char.
char getCharValue()
Get value as char.
unsigned short getUnsignedShortValue()
Get value as unsigned short.
short getShortValue()
Get value as short.
unsigned int getUnsignedIntValue()
Get value as unsigned int.
int getIntValue()
Get value as int.
unsigned long long int getUnsignedLongValue()
Get value as unsigned long long.
long long int getLongValue()
Get value as long long.
float getFloatValue()
Get value as float.
double getDoubleValue()
Get value as double.
void setValue(const std::string & value)
Set value from string.
void setValue(unsigned char value)
Set value from unsigned char.
void setValue(char value)
Set value from char.
void setValue(unsigned short value)
Set value from unsigned short.
void setValue(short value)
Set value from short.
void setValue(unsigned int value)
Set value from unsigned int.
void setValue(int value)
Set value from int.
void setValue(unsigned long long int value)
Set value from unsigned long long.
void setValue(long long int value)
Set value from long long.
void setValue(float value)
Set value from float.
void setValue(double value)
Set value from double.
void setValue(bool value)
Set value from bool.
void setValue(const char * value)
Set value from C-string.
void addValue(unsigned short tag, const std::string & value)
Add a string value for a specific parameter index.
void addValue(unsigned short tag, unsigned char value)
Add a tagged unsigned char value for a specific parameter index.
void addValue(unsigned short tag, char value)
Add a tagged char value for a specific parameter index.
void addValue(unsigned short tag, unsigned short value)
Add a tagged unsigned short value for a specific parameter index.
void addValue(unsigned short tag, short value)
Add a tagged short value for a specific parameter index.
void addValue(unsigned short tag, unsigned int value)
Add a tagged unsigned int value for a specific parameter index.
void addValue(unsigned short tag, int value)
Add a tagged int value for a specific parameter index.
void addValue(unsigned short tag, unsigned long long int value)
Add a tagged unsigned long long value for a specific parameter index.
void addValue(unsigned short tag, long long int value)
Add a tagged long long value for a specific parameter index.
void addValue(unsigned short tag, float value)
Add a tagged float value for a specific parameter index.
void addValue(unsigned short tag, double value)
Add a tagged double value for a specific parameter index.
void addValue(unsigned short tag, bool value)
Add a tagged boolean value for a specific parameter index.
void addValue(unsigned short tag, const char * value)
Add a tagged C-string value for a specific parameter index.
void addValue(unsigned short index, unsigned short tag, const std::string & value)
Add a string value associated with a specific parameter index and value index.
void addValue(unsigned short index, unsigned short tag, unsigned char value)
Add an unsigned char value associated with a specific parameter index and value index.
void addValue(unsigned short index, unsigned short tag, char value)
Add a char value associated with a specific parameter index and value index.
void addValue(unsigned short index, unsigned short tag, unsigned short value)
Add an unsigned short value associated with a specific parameter index and value index.
void addValue(unsigned short index, unsigned short tag, short value)
Add a short value associated with a specific parameter index and value index.
void addValue(unsigned short index, unsigned short tag, unsigned int value)
Add an unsigned int value associated with a specific parameter index and value index.
void addValue(unsigned short index, unsigned short tag, int value)
Add an int value associated with a specific parameter index and value index.
void addValue(unsigned short index, unsigned short tag, unsigned long long int value)
Add an unsigned long long value associated with a specific parameter index and value index.
void addValue(unsigned short index, unsigned short tag, long long int value)
Add a long long value associated with a specific parameter index and value index.
void addValue(unsigned short index, unsigned short tag, float value)
Add a float value associated with a specific parameter index and value index.
void addValue(unsigned short index, unsigned short tag, double value)
Add a double value associated with a specific parameter index and value index.
void addValue(unsigned short index, unsigned short tag, bool value)
Add a bool value associated with a specific parameter index and value index.
void addValue(unsigned short index, unsigned short tag, const char * value)
Add a C-string value associated with a specific parameter index and value index.
virtual std::string getType()
Get type as string (deprecated).
virtual std::string print()
Get string representation.
Inscoper::EParamType getValueType()
Get value type.
virtual std::shared_ptr< Core::InternalStatusParam > getInternal()
Get internal object.

Protected Attributes inherited from Inscoper::StatusParam

Name
std::shared_ptr< Core::InternalStatusParam > _internal

Detailed Description

class Inscoper::ChildStatusParam;

ChildStatusParam class represents a dependent status parameter.

This class defines a status parameter that derives its value from a parent status parameter by applying a specified mathematical operation (offset or multiplication).

Public Functions Documentation

function ChildStatusParam

ChildStatusParam(
    const ChildStatusParam & other
)

Copy constructor.

Parameters:

function ChildStatusParam

ChildStatusParam(
    ChildStatusParam && other
)

Move constructor.

Parameters:

function operator=

ChildStatusParam & operator=(
    const ChildStatusParam & other
)

Copy assignment operator.

Parameters:

Return: A reference to this object

function operator=

ChildStatusParam & operator=(
    ChildStatusParam && other
)

Move assignment operator.

Parameters:

Return: A reference to this object

function ChildStatusParam

ChildStatusParam(
    const Inscoper::SubDeviceId & subDeviceId,
    const ParentStatusParamPtr & parent,
    EOperation operation,
    double operand
)

Constructor with parent, operation, and operand.

Parameters:

  • subDeviceId : The sub-device ID of the associated sub-device
  • parent : The parent status parameter
  • operation : The operation to apply (OFFSET or MULTIPLICATION)
  • operand : The value to apply in the operation

function ChildStatusParam

ChildStatusParam(
    const Inscoper::SubDeviceId & subDeviceId,
    const ParentStatusParamPtr & parent,
    EOperation operation,
    double operand,
    unsigned short tag
)

Constructor with parent, operation, operand, and tag.

Parameters:

  • subDeviceId : The sub-device ID of the associated sub-device
  • parent : The parent status parameter
  • operation : The operation to apply (OFFSET or MULTIPLICATION)
  • operand : The value to apply in the operation
  • tag : A tag to associate with this parameter

function getParent

const ParentStatusParamPtr & getParent()

Get parent parameter.

Return: The parent parameter

Retrieves the parent status parameter.

function setParent

void setParent(
    const ParentStatusParamPtr & parent
)

Set parent parameter.

Parameters:

  • parent : The parent parameter

Sets the parent status parameter.

function getOperation

EOperation getOperation()

Get operation.

Return: The operation

Retrieves the operation applied by this parameter.

function setOperation

void setOperation(
    EOperation operation
)

Set operation.

Parameters:

  • operation : The operation

Sets the operation to be applied by this parameter.

function getOperand

double getOperand()

Get operand.

Return: The operand value

Retrieves the operand value used in the operation.

function setOperand

void setOperand(
    double operand
)

Set operand.

Parameters:

  • operand : The operand value

Sets the operand value used in the operation.

function getTag

unsigned short getTag()

Get tag.

Return: The tag value

Retrieves the tag associated with this parameter.

function setTag

void setTag(
    unsigned short tag
)

Set tag.

Parameters:

  • tag : The tag value

Sets the tag associated with this parameter.

function clone

virtual std::shared_ptr< StatusParam > clone() override

Clone object.

Return: The copy

Reimplements: Inscoper::StatusParam::clone

Creates a deep copy of this instance.

function equals

virtual bool equals(
    const std::shared_ptr< StatusParam > & other
) override

Check equality.

Parameters:

  • other : The status parameter to compare with

Return: True if equal, false otherwise

Reimplements: Inscoper::StatusParam::equals

Compares this instance with another for equality.


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