Horizon
Loading...
Searching...
No Matches
line.hpp
1#pragma once
2#include "util/uuid.hpp"
3#include "nlohmann/json_fwd.hpp"
4#include "common.hpp"
5#include "junction.hpp"
6#include "util/uuid_ptr.hpp"
7
8namespace horizon {
9using json = nlohmann::json;
10
16class Line {
17public:
18 Line(const UUID &uu, const json &j, class ObjectProvider &obj);
19 Line(UUID uu);
20
21 UUID uuid;
24 uint64_t width = 0;
25 int layer = 0;
26 json serialize() const;
27};
28} // namespace horizon
Graphical line.
Definition line.hpp:16
Interface for classes that store objects identified by UUID (e.g. Line or Junction)
Definition object_provider.hpp:10
This class encapsulates a UUID and allows it to be uses as a value type.
Definition uuid.hpp:16
Definition uuid_ptr.hpp:8
a class to store JSON values
Definition json.hpp:177
basic_json<> json
default JSON class
Definition json_fwd.hpp:62