Horizon
src
common
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
#include <vector>
8
#include <map>
9
#include <fstream>
10
11
namespace
horizon {
12
using
json
=
nlohmann::json
;
13
19
class
Line {
20
public
:
21
Line(
const
UUID &uu,
const
json
&j,
class
ObjectProvider &obj);
22
Line(UUID uu);
23
24
UUID uuid;
25
uuid_ptr<Junction> to;
26
uuid_ptr<Junction> from;
27
uint64_t
width = 0;
28
int
layer = 0;
29
json
serialize()
const
;
30
};
31
}
// namespace horizon
nlohmann::basic_json
a class to store JSON values
Definition:
json.hpp:166
nlohmann::json
basic_json<> json
default JSON class
Definition:
json_fwd.hpp:61
libzip::uint64_t
zip_uint64_t uint64_t
zip_uint64_t_t typedef.
Definition:
zip.hpp:108
Generated by
1.8.20