LSBlackBoxArgumentValues Class¶
-
class
LSBlackBoxArgumentValues
¶ Argument values for black-box functions. Argument values are used to query the values of the arguments passed to black-box functions.
Since: 9.5
Summary¶
count |
Returns the number of values in the current argument values. |
isBool |
Returns true if the value at the given position is a boolean. |
isInt |
Returns true if the value at the given position is an integer. |
isDouble |
Returns true if the value at the given position is a double. |
getIntValue |
Returns the integer value at the given position. |
getDoubleValue |
Returns the double value at the given position. |
Functions¶
-
int
LSBlackBoxArgumentValues
::
count
() const¶ Returns the number of values in the current argument values. Values are indexed from 0 to count() - 1.
-
bool
LSBlackBoxArgumentValues
::
isBool
(int pos) const¶ Returns true if the value at the given position is a boolean. You can retrieve the value with
getIntValue()
.Parameters: pos – Position of the value to query. Returns: True if the value at the given position is a boolean.
-
bool
LSBlackBoxArgumentValues
::
isInt
(int pos) const¶ Returns true if the value at the given position is an integer. You can retrieve the value with
getIntValue()
.Parameters: pos – Position of the value to query. Returns: True if the value at the given position is an integer.
-
bool
LSBlackBoxArgumentValues
::
isDouble
(int pos) const¶ Returns true if the value at the given position is a double. You can retrieve the value with
getDoubleValue()
.Parameters: pos – Position of the value to query. Returns: True if the value at the given position is a double.
-
lsint
LSBlackBoxArgumentValues
::
getIntValue
(int pos) const¶ Returns the integer value at the given position. If the value is neither an integer nor a boolean, an exception is thrown.
Parameters: pos – Position of the value to query. Returns: Integer value.
-
lsdouble
LSBlackBoxArgumentValues
::
getDoubleValue
(int pos) const¶ Returns the double value at the given position. If the value is not a double, an exception is thrown.
Parameters: pos – Position of the value to query. Returns: Double value.