Fix underflow in Position
[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
26         private:
27                 Position        position_;
28                 Direction       direction_;
29 };
30
31 #endif /* STOP_HPP */
32
33 /* vim: set ts=4 sts=4 sw=4 noexpandtab textwidth=112: */