Open Lighting Architecture  Latest Git
Public Member Functions | List of all members
ola::web::JsonPatchReplaceOp Class Reference

Detailed Description

Replace the value at the specified path.

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

Public Member Functions

 JsonPatchReplaceOp (const JsonPointer &path, const JsonValue *value)
 Replace the JsonValue at the specified path. More...
 
bool Apply (JsonValue **value) const
 Apply the patch operation to the value. More...
 

Constructor & Destructor Documentation

◆ JsonPatchReplaceOp()

ola::web::JsonPatchReplaceOp::JsonPatchReplaceOp ( const JsonPointer path,
const JsonValue value 
)
inline

Replace the JsonValue at the specified path.

Parameters
pathThe path to replace the value at.
valueThe value to replace with, ownership is transferred.

Member Function Documentation

◆ Apply()

bool ola::web::JsonPatchReplaceOp::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 successfully applied, false otherwise.

Implements ola::web::JsonPatchOp.


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