All Classes Namespaces Files Functions Enumerations Enumerator Friends Macros Pages
Exit.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 #ifndef MANIFOLD_RNDF_EXIT_HH_
19 #define MANIFOLD_RNDF_EXIT_HH_
20 
21 #include <iosfwd>
22 
23 #include "manifold/Helpers.hh"
25 
26 namespace manifold
27 {
28  namespace rndf
29  {
33  {
35  public: Exit() = default;
36 
41  public: explicit Exit(const UniqueId &_exit,
42  const UniqueId &_entry);
43 
46  public: Exit(const Exit &_other);
47 
49  public: virtual ~Exit();
50 
54 
64  public: bool Load(std::ifstream &_rndfFile,
65  const int _x,
66  const int _y,
67  int &_lineNumber);
68 
72 
75  public: const UniqueId &ExitId() const;
76 
79  public: UniqueId &ExitId();
80 
84 
87  public: const UniqueId &EntryId() const;
88 
91  public: UniqueId &EntryId();
92 
96 
98  public: bool Valid() const;
99 
103 
107  public: bool operator==(const Exit &_other) const;
108 
112  public: bool operator!=(const Exit &_other) const;
113 
117  public: Exit &operator=(const Exit &_other);
118 
120  private: UniqueId exit;
121 
123  private: UniqueId entry;
124  };
125  }
126 }
127 #endif
An exit clas that shows how to go from an exit waypoint to an entry waypoint.
Definition: Exit.hh:32
#define MANIFOLD_VISIBLE
Use to represent "symbol visible" if supported.
Definition: Helpers.hh:55
A unique id of the form x.y.z, where x and z are positive numbers and y is non-negative.
Definition: UniqueId.hh:31