diff options
Diffstat (limited to 'server/src/datex2.cppm')
| -rw-r--r-- | server/src/datex2.cppm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/src/datex2.cppm b/server/src/datex2.cppm index ae66631..421d29c 100644 --- a/server/src/datex2.cppm +++ b/server/src/datex2.cppm | |||
| @@ -20,8 +20,8 @@ export struct situation; | |||
| 20 | 20 | ||
| 21 | export struct road_closure | 21 | export struct road_closure |
| 22 | { | 22 | { |
| 23 | std::weak_ptr<situation> parent; | 23 | std::weak_ptr<situation> parent = {}; |
| 24 | std::optional<time::period_seq> validity; | 24 | std::optional<time::period_seq<std::chrono::minutes>> validity = std::nullopt; |
| 25 | std::vector<geo::utm::zonable_wgs84_point> relevant_points = {}; | 25 | std::vector<geo::utm::zonable_wgs84_point> relevant_points = {}; |
| 26 | std::vector<std::shared_ptr<geo::utm::zonable_wgs84_linestring>> | 26 | std::vector<std::shared_ptr<geo::utm::zonable_wgs84_linestring>> |
| 27 | relevant_line_strings = {}; | 27 | relevant_line_strings = {}; |
| @@ -29,7 +29,7 @@ export struct road_closure | |||
| 29 | 29 | ||
| 30 | export struct situation | 30 | export struct situation |
| 31 | { | 31 | { |
| 32 | std::string id; | 32 | std::string id = {}; |
| 33 | std::optional<geo::utm::zonable_wgs84_point> location = | 33 | std::optional<geo::utm::zonable_wgs84_point> location = |
| 34 | std::nullopt; // as shown on the map, not used for querying | 34 | std::nullopt; // as shown on the map, not used for querying |
| 35 | std::vector<std::string> comments = {}; | 35 | std::vector<std::string> comments = {}; |
| @@ -38,8 +38,8 @@ export struct situation | |||
| 38 | 38 | ||
| 39 | export struct situation_publication | 39 | export struct situation_publication |
| 40 | { | 40 | { |
| 41 | time::timestamp publication_time; | 41 | time::timestamp<> publication_time = {}; |
| 42 | std::vector<std::shared_ptr<situation>> situations; | 42 | std::vector<std::shared_ptr<situation>> situations = {}; |
| 43 | }; | 43 | }; |
| 44 | 44 | ||
| 45 | export class loader | 45 | export class loader |