Horizon
horizon-eda-1.3.0
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
horizon::NetClass
Definition:
net_class.hpp:9
nlohmann::basic_json
a class to store JSON values
Definition:
json.hpp:166
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:61
Generated by
1.8.20