initial commit
This commit is contained in:
commit
4b60ece582
327 changed files with 28286 additions and 0 deletions
25
lib/wDispatcher/parentreporter.h
Normal file
25
lib/wDispatcher/parentreporter.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
#ifndef PARENTREPORTER_H
|
||||
#define PARENTREPORTER_H
|
||||
|
||||
#include "defaulthandler.h"
|
||||
#include "handler.h"
|
||||
#include <map>
|
||||
|
||||
namespace W {
|
||||
|
||||
class ParentReporter : public DefaultHandler
|
||||
{
|
||||
public:
|
||||
ParentReporter();
|
||||
~ParentReporter();
|
||||
|
||||
bool call(const W::Event& ev) const;
|
||||
void registerParent(const W::Address& address, W::Handler* handler);
|
||||
|
||||
private:
|
||||
typedef std::map<W::Address, W::Handler*> Hmap;
|
||||
Hmap handlers;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // PARENTREPORTER_H
|
Loading…
Add table
Add a link
Reference in a new issue