Rev 1646 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1646 | Rev 1768 | ||
|---|---|---|---|
| Line 22... | Line 22... | ||
| 22 | #define TIMER_TIMER_H |
22 | #define TIMER_TIMER_H |
| 23 | 23 | ||
| 24 | #include <boost/asio.hpp> |
24 | #include <boost/asio.hpp> |
| 25 | #include <boost/signals2.hpp> |
25 | #include <boost/signals2.hpp> |
| 26 | #include <boost/shared_ptr.hpp> |
26 | #include <boost/shared_ptr.hpp> |
| - | 27 | ||
| - | 28 | #include "logging/Logger.h" |
|
| 27 | 29 | ||
| 28 | #include "types.h" |
30 | #include "types.h" |
| 29 | 31 | ||
| 30 | namespace atom { |
32 | namespace atom { |
| 31 | namespace timer { |
33 | namespace timer { |
| Line 52... | Line 54... | ||
| 52 | boost::asio::deadline_timer instance_; |
54 | boost::asio::deadline_timer instance_; |
| 53 | TimerId id_; |
55 | TimerId id_; |
| 54 | std::string time_; |
56 | std::string time_; |
| 55 | unsigned int timeout_; |
57 | unsigned int timeout_; |
| 56 | bool repeat_; |
58 | bool repeat_; |
| - | 59 | ||
| - | 60 | logging::Logger LOG; |
|
| 57 | 61 | ||
| 58 | SignalOnTimeout signal_on_timeout_; |
62 | SignalOnTimeout signal_on_timeout_; |
| 59 | 63 | ||
| 60 | void TimeoutHandler(const boost::system::error_code& error); |
64 | void TimeoutHandler(const boost::system::error_code& error); |
| 61 | }; |
65 | }; |