29 #ifndef INCLUDE_OLA_WEB_JSONPATCH_H_
30 #define INCLUDE_OLA_WEB_JSONPATCH_H_
84 std::auto_ptr<const JsonValue> m_value;
129 std::auto_ptr<const JsonValue> m_value;
196 std::auto_ptr<const JsonValue> m_value;
223 bool Empty()
const {
return m_patch_ops.empty(); }
226 typedef std::vector<JsonPatchOp*> PatchOps;
228 PatchOps m_patch_ops;
233 #endif // INCLUDE_OLA_WEB_JSONPATCH_H_
The base class for JSON values.
Definition: Json.h:119
A class to serialize a JSONValue to text.
Definition: JsonPatch.h:52
Add a JsonValue.
Definition: JsonPatch.h:68
bool Apply(JsonValue **value) const
Apply the patch operation to the value.
Definition: JsonPatch.cpp:193
bool Apply(JsonValue **value) const
Apply the patch operation to the value.
Definition: JsonPatch.cpp:189
bool Apply(JsonValue **value) const
Apply the patch operation to the value.
Definition: JsonPatch.cpp:301
void AddOp(JsonPatchOp *op)
Add a patch operation to the set.
Definition: JsonPatch.cpp:321
Remove the value at the specifed path.
Definition: JsonPatch.h:92
Move a value from one location to another.
Definition: JsonPatch.h:137
JsonPatchAddOp(const JsonPointer &path, const JsonValue *value)
Add the JsonValue to the specified path.
Definition: JsonPatch.h:75
JsonPatchReplaceOp(const JsonPointer &path, const JsonValue *value)
Replace the JsonValue at the specified path.
Definition: JsonPatch.h:120
JsonPatchMoveOp(const JsonPointer &from, const JsonPointer &to)
Move a value from one location to another.
Definition: JsonPatch.h:144
Replace the value at the specifed path.
Definition: JsonPatch.h:113
bool Apply(JsonValue **value) const
Apply the patch operation to the value.
Definition: JsonPatch.cpp:232
Copy a value from one location to another.
Definition: JsonPatch.h:161
JsonPatchRemoveOp(const JsonPointer &path)
Add the JsonValue to the specified path.
Definition: JsonPatch.h:98
virtual bool Apply(JsonValue **value) const =0
Apply the patch operation to the value.
JsonPatchCopyOp(const JsonPointer &from, const JsonPointer &to)
Copy a value from one location to another.
Definition: JsonPatch.h:168
An ordered collection of JsonPatchOps.
Definition: JsonPatch.h:205
bool Apply(JsonValue **value) const
Apply this patch set to a value.
Definition: JsonPatch.cpp:325
A JSON pointer (RFC 6901) refers to a possible element in a JSON data structure.
Definition: JsonPointer.h:66
bool Apply(JsonValue **value) const
Apply the patch operation to the value.
Definition: JsonPatch.cpp:273
An implementation of Json Pointers (RFC 6901).
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
Basic data types used to represent elements in a JSON document.
bool Apply(JsonValue **value) const
Apply the patch operation to the value.
Definition: JsonPatch.cpp:212
Test a path matches the specified value.
Definition: JsonPatch.h:185