ArgumentDescription¶
-
class
kanzi::connect::ArgumentDescription¶ Represents an argument.
Public Functions
-
ArgumentDescription()¶ Constructor.
-
size_t
count() const¶ Amount of attribute elements.
- Returns
amount of elements.
-
string
toBinary(size_t index = 0) const¶ Converts a contained value to a string.
- Parameters
index – optional index to vector in case argument holds multiple values.
- Returns
string value
-
bool
toBool(size_t index = 0) const¶ Converts a contained value to a boolean.
- Parameters
index – optional index to vector in case argument holds multiple values.
- Returns
boolean value
-
float
toFloat(size_t index = 0) const¶ Converts a contained value to a float.
- Parameters
index – optional index to vector in case argument holds multiple values.
- Returns
float value
-
int
toInt(size_t index = 0) const¶ Converts a contained value to a integer.
- Parameters
index – optional index to vector in case argument holds multiple values.
- Returns
integer value
-
string
toString(size_t index = 0) const¶ Converts a contained value to a string.
- Parameters
index – optional index to vector in case argument holds multiple values.
- Returns
string value
-