Horizon
net_class.hpp
1 #pragma once
2 #include "nlohmann/json_fwd.hpp"
3 #include "util/uuid.hpp"
4 #include <stdint.h>
5 
6 namespace horizon {
7 using json = nlohmann::json;
8 
9 class NetClass {
10 public:
11  NetClass(const UUID &uu, const json &j);
12  NetClass(const UUID &uu);
13  UUID uuid;
14  std::string name;
15  bool is_default = false;
16  UUID get_uuid() const;
17 
18  json serialize() const;
19 };
20 } // namespace horizon
Definition: net_class.hpp:9
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