Horizon
Loading...
Searching...
No Matches
src
board
board_rules_import.hpp
1
#pragma once
2
#include "nlohmann/json.hpp"
3
#include "util/uuid.hpp"
4
#include "rules/rules_import_export.hpp"
5
6
namespace
horizon {
7
using
json =
nlohmann::json
;
8
class
BoardRulesImportInfo :
public
RulesImportInfo {
9
public
:
10
BoardRulesImportInfo(
const
json &j);
11
unsigned
int
n_inner_layers;
12
std::map<UUID, std::string> net_classes;
13
UUID
net_class_default;
14
json rules;
15
const
json &get_rules()
const override
16
{
17
return
rules;
18
}
19
};
20
21
}
// 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