SOLA
Loading...
Searching...
No Matches
location.h
1// Copyright 2023 The SOLA authors
2//
3// This file is part of DAISI.
4//
5// DAISI is free software: you can redistribute it and/or modify it under the terms of the GNU
6// General Public License as published by the Free Software Foundation; version 2.
7//
8// DAISI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
9// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
10// Public License for more details.
11//
12// You should have received a copy of the GNU General Public License along with DAISI. If not, see
13// <https://www.gnu.org/licenses/>.
14//
15// SPDX-License-Identifier: GPL-2.0-only
16
17#ifndef DAISI_MATERIAL_FLOW_LOCATION_H_
18#define DAISI_MATERIAL_FLOW_LOCATION_H_
19
20#include <string>
21
22#include "solanet/serializer/serialize.h"
23#include "utils/structure_helpers.h"
24
25namespace daisi::material_flow {
26
27struct Location {
28 Location() = default;
29
30 Location(std::string id, std::string type);
31 Location(std::string id, std::string type, const daisi::util::Position &position);
32
33 const std::string &getId() const;
34 const std::string &getType() const;
35 daisi::util::Position getPosition() const;
36
37 SERIALIZE(id_, type_, position_);
38
39private:
40 std::string id_;
41 std::string type_;
42
43 daisi::util::Position position_;
44};
45
46} // namespace daisi::material_flow
47
48#endif
Definition location.h:27