Subversion Repositories HomeAutomation

Rev

Rev 1315 | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

  1. /*
  2.  * Monitor.h
  3.  *
  4.  *  Created on: Apr 25, 2009
  5.  *      Author: Mattias Runge
  6.  */
  7.  
  8. #ifndef MONITOR_H_
  9. #define MONITOR_H_
  10.  
  11. #include <boost/make_shared.hpp>
  12. #include "broker/Subscriber.h"
  13. #include "message/Message.h"
  14. #include "log/Logger.h"
  15.  
  16. namespace atom {
  17. namespace subscribers {
  18.  
  19. class Monitor : public Subscriber
  20. {
  21. public:
  22.     typedef boost::shared_ptr<Monitor> Pointer;
  23.  
  24.     Monitor();
  25.     virtual ~Monitor();
  26.  
  27. protected:
  28.     void OnMessage(Message::Pointer message);
  29.  
  30. private:
  31.     log::Logger LOG;
  32. };
  33.  
  34. } // namespace subscribers
  35. } // namesapce atom
  36.  
  37. #endif /* MONITOR_HPP_ */
  38.