Horizon
rules_import_export.hpp
1 #pragma once
2 #include "nlohmann/json_fwd.hpp"
3 #include "util/uuid.hpp"
4 
5 namespace horizon {
6 using json = nlohmann::json;
8 public:
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 
19 public:
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:166
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61