Photon C++ Client API
5.0.7.3
|
Public Member Functions | |
| OperationRequest (nByte operationCode, const OperationRequestParameters ¶meters=OperationRequestParameters()) | |
| ~OperationRequest (void) | |
| OperationRequest (const OperationRequest &toCopy) | |
| OperationRequest & | operator= (const OperationRequest &toCopy) |
| const Common::Object & | operator[] (unsigned int index) const |
| Common::JString | toString (bool withParameters=false, bool withParameterTypes=false) const |
| Common::Object | getParameterForCode (nByte parameterCode) const |
| nByte | getOperationCode (void) const |
| const OperationRequestParameters & | getParameters (void) const |
| OperationRequestParameters & | getParameters (void) |
| void | setParameters (const OperationRequestParameters ¶meters) |
This is a container for an Operation request, which consists of a code and parameters.
| OperationRequest | ( | nByte | operationCode, |
| const OperationRequestParameters & | parameters = OperationRequestParameters() |
||
| ) |
Constructor: Creates a new instance with the specified parameters.
| operationCode | identifies the type of the operation. |
| parameters | the payload of the operation. |
| ~OperationRequest | ( | void | ) |
Destructor.
| OperationRequest | ( | const OperationRequest & | toCopy | ) |
Copy-Constructor: Creates a new instance that is a deep copy of the argument instance.
| toCopy | The instance to copy. |
| OperationRequest & operator= | ( | const OperationRequest & | toCopy | ) |
operator=.
Makes a deep copy of its right operand into its left operand.
This overwrites old data in the left operand.
| 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.
| JString toString | ( | bool | withParameters = false, |
| bool | withParameterTypes = false |
||
| ) | const |
| 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 |
| Object getParameterForCode | ( | nByte | parameterCode | ) | const |
Alternative access to the Parameters.
| parameterCode | The key code of an event value |
| nByte getOperationCode | ( | void | ) | const |
| const OperationRequestParameters & getParameters | ( | void | ) | const |
| OperationRequestParameters & getParameters | ( | void | ) |
| void setParameters | ( | const OperationRequestParameters & | parameters | ) |
| parameters | Sets the payload of the operation. |