BUGFIX: Elevators did not handle Requests in the correct order
[cs356-p1-elevator.git] / positionlabel.hpp
1 #ifndef POSITIONLABEL_HPP
2 #define POSITIONLABEL_HPP
3
4 #include "direction.hpp"
5 #include <gtkmm.h>
6 #include <string>
7 #include <sstream>
8 #include <iostream>
9 #include <iomanip>
10
11 class PositionLabel : public Gtk::Table
12 {
13         public:
14                 PositionLabel (int elevator, const std::string text="0.0");
15
16                 int getElevatorNumber() const;
17                 void update_position (float floor, Direction direction);
18
19         private:
20                 Gtk::Label label_;
21                 Gtk::Image direction_img_;
22                 int elevator_;
23 };
24
25 #endif /* POSITIONLABEL_HPP */
26
27 /* vim: set ts=4 sts=4 sw=4 noet tw=112: */