Horizon
Loading...
Searching...
No Matches
src
common
layer.hpp
1
#pragma once
2
#include <string>
3
4
namespace
horizon {
5
class
Layer {
6
public
:
7
Layer(
int
i,
const
std::string &n,
bool
r =
false
,
bool
cop =
false
)
8
: index(i), color_layer(i), position(i), name(n), reverse(r), copper(cop)
9
{
10
}
11
int
index;
12
int
color_layer;
13
double
position;
14
std::string name;
15
bool
reverse;
16
bool
copper;
17
18
inline
bool
operator==(
const
Layer &other)
const
19
{
20
return
position == other.position && index == other.index && copper == other.copper && name == other.name
21
&& reverse == other.reverse && color_layer == other.color_layer;
22
}
23
};
24
}
// namespace horizon
Generated by
1.15.0