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