Horizon
connection_line.hpp
1 #pragma once
2 #include "track.hpp"
3 #include "common/common.hpp"
4 #include "common/junction.hpp"
5 #include "nlohmann/json_fwd.hpp"
6 #include "util/uuid.hpp"
7 #include "util/uuid_ptr.hpp"
8 
9 namespace horizon {
10 using json = nlohmann::json;
11 
13 public:
14  ConnectionLine(const UUID &uu, const json &j, class Board *brd = nullptr);
15  ConnectionLine(const UUID &uu);
16 
17  void update_refs(class Board &brd);
18  UUID get_uuid() const;
19 
20  UUID uuid;
21 
22  Track::Connection from;
24 
25  json serialize() const;
26 };
27 } // namespace horizon
Definition: board.hpp:47
Definition: connection_line.hpp:12
Definition: track.hpp:32
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
a class to store JSON values
Definition: json.hpp:177
basic_json<> json
default JSON class
Definition: json_fwd.hpp:62