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

| Open Lighting Architecture 0.10.9

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

## Detailed Description

Add a JsonValue.

Inheritance diagram for ola::web::JsonPatchAddOp:

## Public Member Functions
| JsonPatchAddOp (const JsonPointer &path, const JsonValue *value)
| Add the JsonValue to the specified path.
bool | Apply (JsonValue **value) const
| Apply the patch operation to the value.

## Constructor & Destructor Documentation

## ◆ JsonPatchAddOp()

ola::web::JsonPatchAddOp::JsonPatchAddOp | ( | const JsonPointer & | path,
|  | const JsonValue * | value )
| inline

Add the JsonValue to the specified path.

Parameters

  path | The path to add the value at.
  value | the value to add, ownership is transferred.

## Member Function Documentation

## ◆ Apply()

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