Ditto  3.0.4
MutableRegister.hpp
1 
2 #ifndef _DITTO_MUTABLE_REGISTER_
3 #define _DITTO_MUTABLE_REGISTER_
4 
5 #include "MutableDocumentPath.hpp"
6 #include "Register.hpp"
7 #include "json.hpp"
8 
9 namespace ditto {
10 
11 class MutableRegister : public Register {
12  friend class MutableDocumentPath;
13 
14 public:
15  void set(nlohmann::json value);
16 
17 private:
18  MutableRegister(const nlohmann::json &info, MutableDocumentPath doc_path);
19  MutableDocumentPath doc_path;
20 };
21 } // namespace ditto
22 
23 #endif
Provides an interface to specify a path to a key in a document that you can then call various update ...
Definition: MutableDocumentPath.hpp:32
Definition: MutableRegister.hpp:11
Definition: Register.hpp:11
basic_json<> json
default JSON class
Definition: json.hpp:2933