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

| Open Lighting Architecture 0.10.9

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

## Detailed Description

An ordered collection of JsonPatchOps.

## Public Member Functions
void | AddOp (JsonPatchOp *op)
| Add a patch operation to the set.
bool | Apply (JsonValue **value) const
| Apply this patch set to a value.
bool | Empty () const

## Member Function Documentation

## ◆ AddOp()

void ola::web::JsonPatchSet::AddOp | ( | JsonPatchOp * | op | ) |

Add a patch operation to the set.

Parameters

  op | the operation to add, ownership is transferred.

## ◆ Apply()

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

Apply this patch set to a value.

Don't call this directly, instead use JsonData::Apply().

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

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