Horizon
Loading...
Searching...
No Matches
src
board
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
12
class
ConnectionLine {
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;
23
Track::Connection
to;
24
25
json serialize()
const
;
26
};
27
}
// namespace horizon
horizon::Board
Definition
board.hpp:47
horizon::Track::Connection
Definition
track.hpp:32
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