Horizon
Loading...
Searching...
No Matches
src
block
net_class.hpp
1
#pragma once
2
#include "nlohmann/json_fwd.hpp"
3
#include "util/uuid.hpp"
4
5
namespace
horizon {
6
using
json =
nlohmann::json
;
7
8
class
NetClass {
9
public
:
10
NetClass(
const
UUID
&uu,
const
json &j);
11
NetClass(
const
UUID
&uu);
12
UUID
uuid;
13
std::string name;
14
UUID
get_uuid()
const
;
15
16
json serialize()
const
;
17
};
18
}
// namespace horizon
horizon::UUID
This class encapsulates a UUID and allows it to be uses as a value type.
Definition
uuid.hpp:16
nlohmann::json
basic_json<> json
default JSON class
Definition
json_fwd.hpp:62
Generated by
1.15.0