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

Detailed Description

Copy a value from one location to another.

Inheritance diagram for ola::web::JsonPatchCopyOp:
ola::web::JsonPatchOp

Public Member Functions

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

Constructor & Destructor Documentation

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

Copy a value from one location to another.

Parameters
fromThe path to copy from.
toThe path to copy to.

Member Function Documentation

bool ola::web::JsonPatchCopyOp::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: