Subversion Repositories HomeAutomation

Rev

Rev 1315 | Go to most recent revision | 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 <iostream>
  12. #include "../../broker/Subscriber.h"
  13. #include "../../message/Message.h"
  14. #include "../../utils/Logger.h"
  15. #include <boost/make_shared.hpp>
  16.  
  17. namespace atom {
  18. namespace subscribers {
  19.  
  20. using namespace atom::broker;
  21. using namespace atom::utils;
  22. using namespace atom::message;
  23.  
  24. class Monitor : public Subscriber
  25. {
  26. public:
  27.     typedef boost::shared_ptr<Monitor> pointer;
  28.  
  29.     Monitor(Broker::pointer broker);
  30.     virtual ~Monitor();
  31.  
  32. protected:
  33.     void onNewMessage(Message::pointer message);
  34.  
  35. private:
  36.     Logger LOG;
  37. };
  38.  
  39. }
  40. }
  41.  
  42. #endif /* MONITOR_HPP_ */
  43.