Subversion Repositories HomeAutomation

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

  1. /*
  2.  * Monitor.cpp
  3.  *
  4.  *  Created on: Jul 22, 2009
  5.  *      Author: Mattias Runge
  6.  */
  7.  
  8. #include "Monitor.h"
  9.  
  10. namespace atom {
  11. namespace subscribers {
  12.  
  13. Monitor::Monitor(Broker::pointer broker) : Subscriber(broker, true)
  14. {
  15.     LOG.setName("MonitorSubscriber");
  16.     this->start();
  17. }
  18.  
  19. Monitor::~Monitor()
  20. {
  21. }
  22.  
  23. void Monitor::onNewMessage(Message::pointer message)
  24. {
  25.     LOG.info("Got message");
  26.     // TODO Convert message to readable data with the help of the definitions in the xml-file
  27. }
  28.  
  29. }
  30. }
  31.