Open Lighting Architecture: ola::web::JsonPatchMoveOp Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Public Member Functions | List of all members
ola::web::JsonPatchMoveOp Class Reference
JSON

## Detailed Description

Move a value from one location to another.

Inheritance diagram for ola::web::JsonPatchMoveOp:

## Public Member Functions
| JsonPatchMoveOp (const JsonPointer &from, const JsonPointer &to)
| Move a value from one location to another.
bool | Apply (JsonValue **value) const
| Apply the patch operation to the value.

## Constructor & Destructor Documentation

## ◆ JsonPatchMoveOp()

ola::web::JsonPatchMoveOp::JsonPatchMoveOp | ( | const JsonPointer & | from,
|  | const JsonPointer & | to )
| inline

Move a value from one location to another.

Parameters

  from | The path to move from.
  to | The path to move to.

## Member Function Documentation

## ◆ Apply()

bool ola::web::JsonPatchMoveOp::Apply | ( | JsonValue ** | value | ) | const
| virtual

Apply the patch operation to the value.

Parameters

  value | A pointer to a JsonValue object. This may be modified, replaced or deleted entirely by the patch operation.

Returns
  True if the patch was successfully applied, false otherwise.

Implements ola::web::JsonPatchOp.

The documentation for this class was generated from the following files:

- include/ola/web/JsonPatch.h
- common/web/JsonPatch.cpp