Subversion Repositories HomeAutomation

Rev

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

Rev Author Line No. Line
1309 runge 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>
1311 runge 12
#include "broker/Subscriber.h"
13
#include "message/Message.h"
1315 runge 14
#include "log/Logger.h"
1309 runge 15
 
16
namespace atom {
17
namespace subscribers {
18
 
19
class Monitor : public Subscriber
20
{
21
public:
1403 runge 22
    typedef boost::shared_ptr<Monitor> Pointer;
1309 runge 23
 
1403 runge 24
    Monitor();
1309 runge 25
    virtual ~Monitor();
26
 
27
protected:
1403 runge 28
    void OnMessage(Message::Pointer message);
1309 runge 29
 
30
private:
1315 runge 31
    log::Logger LOG;
1309 runge 32
};
33
 
1403 runge 34
} // namespace subscribers
35
} // namesapce atom
1309 runge 36
 
37
#endif /* MONITOR_HPP_ */