Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
router_decorator.hh
Go to the documentation of this file.
1 #pragma once
2 #include "router.hh"
3 #include <memory>
4 
5 namespace eclipse {
6 
8 class RouterDecorator: public Router {
9  public:
11  virtual ~RouterDecorator() = default;
12 
13  virtual void on_read(messages::Message*, Channel*);
14 
15  protected:
16  std::unique_ptr<Router> router;
17 };
18 
19 } /* eclipse */
Definition: router_decorator.hh:8
RouterDecorator(Router *)
Definition: router_decorator.cc:5
std::unique_ptr< Router > router
Definition: router_decorator.hh:16
Definition: message.hh:15
virtual void on_read(messages::Message *, Channel *)
Definition: router_decorator.cc:7
Definition: router.hh:20
virtual ~RouterDecorator()=default
Definition: channel.hh:10