Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Classes | Functions | Variables
RouterDecorator

Router component entity of Router decorator pattern. More...

Classes

class  eclipse::Router
 

Functions

 eclipse::Router::Router ()=default
 
virtual eclipse::Router::~Router ()=default
 
virtual void eclipse::Router::on_read (messages::Message *, Channel *)=0
 

Variables

std::map< std::string,
std::function< void(messages::Message
*, Channel *)> > 
eclipse::Router::routing_table
 

Detailed Description

Router component entity of Router decorator pattern.

Router is intended to be used as a decorator component. The reason of using decorator is to make possible add multiple functionabilities in a flexible way. This is, We might have multiple component which needs to be connected to our network.

Before adding your router, get familiar with decorator pattern.

Function Documentation

virtual void eclipse::Router::on_read ( messages::Message ,
Channel  
)
pure virtual
eclipse::Router::Router ( )
default
virtual eclipse::Router::~Router ( )
virtualdefault

Variable Documentation

std::map<std::string, std::function<void(messages::Message*, Channel*)> > eclipse::Router::routing_table
protected