Open Lighting Architecture  0.10.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
ola::web::JsonPatchMoveOp Class Reference

Detailed Description

Move a value from one location to another.

Inheritance diagram for ola::web::JsonPatchMoveOp:
Inheritance graph
[legend]
Collaboration diagram for ola::web::JsonPatchMoveOp:
Collaboration graph
[legend]

Public Member Functions

 JsonPatchMoveOp (const JsonPointer &from, const JsonPointer &to)
 Move a value from one location to another. More...
 
bool Apply (JsonValue **value) const
 Apply the patch operation to the value. More...
 

Constructor & Destructor Documentation

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

Move a value from one location to another.

Parameters
fromThe path to move from.
toThe path to move to.

Member Function Documentation

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

Apply the patch operation to the value.

Parameters
valueA pointer to a JsonValue object. This may be modified, replaced or deleted entirely by the patch operation.
Returns
True if the patch was sucessfully applied, false otherwise.

Implements ola::web::JsonPatchOp.


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