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
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
Creates dummy copy constructor and assignment operator declarations.
Definition: Macro.h:44
Remove the value at the specified 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 specified path.
Definition: JsonPatch.h:113
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
A JSON pointer (RFC 6901) refers to a possible element in a JSON data structure.
Definition: JsonPointer.h:66
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.
Test a path matches the specified value.
Definition: JsonPatch.h:185