11 #include <boost/serialization/version.hpp>
12 #include <boost/serialization/string.hpp>
13 #include <boost/serialization/split_member.hpp>
15 #include <nlohmann/json.hpp>
16 #include <immer/box.hpp>
32 immer::box<Private> m_d;
38 const json &
get()
const {
return m_d.get().j; }
39 operator json()
const {
return m_d.get().j; }
41 template <
class Archive>
42 void save(Archive &ar, std::uint32_t
const )
const {
46 template <
class Archive>
47 void load(Archive &ar, std::uint32_t
const ) {
50 m_d = immer::box<Private>(
Private{json::parse(std::move(j))});
52 BOOST_SERIALIZATION_SPLIT_MEMBER()
Definition: jsonwrap.hpp:23
JsonWrap()
Definition: jsonwrap.hpp:34
void load(Archive &ar, std::uint32_t const)
Definition: jsonwrap.hpp:47
JsonWrap(const json &j)
Definition: jsonwrap.hpp:36
const json & get() const
Definition: jsonwrap.hpp:38
JsonWrap(json &&j)
Definition: jsonwrap.hpp:35
void save(Archive &ar, std::uint32_t const) const
Definition: jsonwrap.hpp:42
Definition: location.hpp:10
@ Private
Definition: client-model.hpp:41
nlohmann::json json
Definition: jsonwrap.hpp:20
bool operator==(BaseJob a, BaseJob b)
Definition: basejob.cpp:280
Definition: location.hpp:27
Definition: clientutil.hpp:217
static void from_json(const json &j, Kazv::JsonWrap &w)
Definition: jsonwrap.hpp:66
static void to_json(json &j, Kazv::JsonWrap w)
Definition: jsonwrap.hpp:62