Add ElevatorController
[cs356-p1-elevator.git] / stop.hpp
1 /*
2  * CS356 Project 01 -- Elevator Simulator
3  *
4  * Stop Class Specification
5  */
6
7 #ifndef STOP_HPP
8 #define STOP_HPP
9
10 #include "position.hpp"
11 #include "direction.hpp"
12
13 class Stop
14 {
15         friend std::ostream& operator<< (std::ostream &os, const Stop& rhs);
16
17         public:
18                 Stop (const Position& position, const Direction& direction);
19
20                 bool operator== (const Stop& rhs) const;
21                 bool operator< (const Stop& rhs) const;
22                 bool operator> (const Stop& rhs) const;
23
24                 const Direction getDirection () const;
25                 const Position getPosition () const;
26
27         private:
28                 Position        position_;
29                 Direction       direction_;
30 };
31
32 #endif /* STOP_HPP */
33
34 /* vim: set ts=4 sts=4 sw=4 noexpandtab textwidth=112: */