This is a container for an Operation request, which consists of a code and parameters.
§ OperationRequest() [1/2]
Constructor: Creates a new instance with the specified parameters.
- Parameters
-
operationCode | identifies the type of the operation. |
parameters | the payload of the operation. |
§ ~OperationRequest()
§ OperationRequest() [2/2]
Copy-Constructor: Creates a new instance that is a deep copy of the argument instance.
- Parameters
-
toCopy | The instance to copy. |
§ operator=()
operator=.
Makes a deep copy of its right operand into its left operand.
This overwrites old data in the left operand.
§ operator[]()
const Object & operator[] |
( |
unsigned int |
index | ) |
const |
operator[]. Accesses the value at the given index like in an array. This does not check for valid indexes and shows undefined behavior for invalid indexes.
§ toString()
JString toString |
( |
bool |
withParameters = false , |
|
|
bool |
withParameterTypes = false |
|
) |
| const |
- Parameters
-
withParameters | determines if the payload of the event should be included in the returned string |
withParameterTypes | determines if the type information should be included for the payload |
- Returns
- a JString representation of the instance for debugging purposes.
§ getParameterForCode()
Object getParameterForCode |
( |
nByte |
parameterCode | ) |
const |
Alternative access to the Parameters.
- Parameters
-
parameterCode | The key code of an event value |
- Returns
- The parameters value, or an empty Object instance if the key does not exist in the parameters.
§ getOperationCode()
nByte getOperationCode |
( |
void |
| ) |
const |
- Returns
- the operation code that identifies the type of the operation request.
§ getParameters() [1/2]
- Returns
- a read only reference to all parameters of the operation request.
§ getParameters() [2/2]
- Returns
- a mutable reference to all parameters of the operation request.
§ setParameters()
- Parameters
-
parameters | Sets the payload of the operation. |