Horizon
Loading...
Searching...
No Matches
rules_import_export.hpp
1#pragma once
2#include "nlohmann/json_fwd.hpp"
3#include "util/uuid.hpp"
4
5namespace horizon {
6using json = nlohmann::json;
8public:
9 RulesImportInfo(const json &j);
10 virtual const json &get_rules() const = 0;
11 std::string name;
12 std::string notes;
13 virtual ~RulesImportInfo()
14 {
15 }
16};
17
19public:
20 RulesExportInfo(const json &j);
22 std::string name;
23 std::string notes;
24 UUID uuid;
25 void serialize(json &j) const;
26};
27
28} // namespace horizon
Definition rules_import_export.hpp:18
Definition rules_import_export.hpp:7
This class encapsulates a UUID and allows it to be uses as a value type.
Definition uuid.hpp:16
a class to store JSON values
Definition json.hpp:177
basic_json<> json
default JSON class
Definition json_fwd.hpp:62