Wall.h 1.7 KB
Newer Older
1
/**
2 3
 * \file        Wall.h
 * \date        Nov 16, 2010
4
 * \version     v0.7
5
 * \copyright   <2009-2015> Forschungszentrum Jülich GmbH. All rights reserved.
Ulrich Kemloh's avatar
Ulrich Kemloh committed
6
 *
7
 * \section License
8 9 10
 * This file is part of JuPedSim.
 *
 * JuPedSim is free software: you can redistribute it and/or modify
11
 * it under the terms of the GNU Lesser General Public License as published by
12 13 14 15 16 17 18 19
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 *
 * JuPedSim is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
20
 * You should have received a copy of the GNU Lesser General Public License
21 22
 * along with JuPedSim. If not, see <http://www.gnu.org/licenses/>.
 *
23
 * \section Description
24 25
 *
 *
26
 **/
Ozaq's avatar
Ozaq committed
27

Ulrich Kemloh's avatar
Ulrich Kemloh committed
28 29

#ifndef _WALL_H
Mohcine Chraibi's avatar
Mohcine Chraibi committed
30
#define _WALL_H
Ulrich Kemloh's avatar
Ulrich Kemloh committed
31 32 33 34

#include "Line.h"

class Wall : public Line {
35

36
public:
Ulrich Kemloh's avatar
Ulrich Kemloh committed
37 38 39
     /**
      * Constructor
      */
40
     Wall();
Ulrich Kemloh's avatar
Ulrich Kemloh committed
41 42 43 44

     /**
      * Constructor
      */
45
     Wall(const Point& p1, const Point& p2, const std::string& type="internal");
Ulrich Kemloh's avatar
Ulrich Kemloh committed
46 47

     /**
Ozaq's avatar
Ozaq committed
48
      * Destructor
Ulrich Kemloh's avatar
Ulrich Kemloh committed
49
      */
Ozaq's avatar
Ozaq committed
50
     ~Wall() override = default;
51

52 53 54 55 56 57 58 59 60 61
     /**
      * set/get the wall type. Values are external and internal
      */
     const std::string& GetType() const;

     /**
      * set/get the wall type. Values are external and internal
      */
     void SetType(const std::string& type);

62 63 64 65 66 67 68 69
     /**
      *  Debug output from the object
      */
     void WriteToErrorLog() const;

     /**
      * @return a nicely formated string of the object
      */
Ozaq's avatar
Ozaq committed
70
     std::string Write() const override;
71 72 73

private:
     std::string _type;
Ulrich Kemloh's avatar
Ulrich Kemloh committed
74 75 76
};


Mohcine Chraibi's avatar
Mohcine Chraibi committed
77
#endif  /* _WALL_H */
Ulrich Kemloh's avatar
Ulrich Kemloh committed
78