16 #ifndef INCLUDE_NN_NLIB_MSGPACK_JSONPATCH_H_ 17 #define INCLUDE_NN_NLIB_MSGPACK_JSONPATCH_H_ 21 #if defined(_MSC_VER) && defined(nx_msgpack_EXPORTS) 22 #undef NLIB_VIS_PUBLIC 23 #define NLIB_VIS_PUBLIC NLIB_WINEXPORT 35 return PathValueOp(
"add", path, value);
39 return PathValueOp(
"replace", path, value);
43 return PathFromOp(
"move", path, from);
47 return PathFromOp(
"copy", path, from);
50 return PathValueOp(
"test", path, value);
55 swap(oplist_, rhs.oplist_);
80 NLIB_DEFINE_STD_SWAP(::nlib_ns::msgpack::JsonPatchBuilder)
81 #if defined(_MSC_VER) && defined(nx_msgpack_EXPORTS) 82 #undef NLIB_VIS_PUBLIC 83 #define NLIB_VIS_PUBLIC NLIB_WINIMPORT 86 #endif // INCLUDE_NN_NLIB_MSGPACK_JSONPATCH_H_
#define NLIB_DISALLOW_COPY_AND_ASSIGN(TypeName)
Prohibits use of the copy constructor and assignment operator for the class specified by TypeName...
Class to apply JSON Patch (RFC-6902).
Object created when MessagePack or JSON is read.
errno_t Copy(const nlib_utf8_t *path, const nlib_utf8_t *from) noexcept
Adds a "copy" operation to the array that serves as the JSON Patch document.
errno_t Test(const nlib_utf8_t *path, MpObject *value) noexcept
Adds a "test" operation to the array that serves as the JSON Patch document.
Object created when MessagePack, JSON, or CSV is read.
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
errno_t Add(const nlib_utf8_t *path, MpObject *value) noexcept
Adds an "add" operation to the array that serves as the JSON Patch document.
errno_t Move(const nlib_utf8_t *path, const nlib_utf8_t *from) noexcept
Adds a "move" operation to the array that serves as the JSON Patch document.
Class to create JSON Patch (RFC-6902).