Horizon
src
block
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
nlohmann::basic_json
a class to store JSON values
Definition:
json.hpp:166
nlohmann::json
basic_json<> json
default JSON class
Definition:
json_fwd.hpp:61
Generated by
1.8.20