46 prefix_ senf::ppi::RouteRoute<connector::EventDescriptor, connector::OutputConnector> &
51 #define route_impl( Source, Target ) \ 52 prefix_ senf::ppi::Route<senf::ppi::Source, senf::ppi::Target> & \ 53 senf::ppi::module::Module::route(Source & source, Target & target) \ 55 detail::RouteHelper<Source,Target>::route(*this, source, target, source, target); \ 56 return static_cast< Route<Source,Target> & >( \ 57 addRoute(std::unique_ptr< RouteBase >( \ 58 new Route<Source,Target>(source, target)))); \ 79 std::string consoleDirectoryName(T & t) {
80 return senf::prettyBaseName(
typeid(t)) +
"_" + senf::str(&t);
86 if (! senf::contains(connectorRegistry_, &connector)) {
87 connectorRegistry_.push_back(&connector);
88 connector.setModule(*
this);
90 .doc( senf::prettyName(
typeid(connector)) +
" " + senf::str(&connector));
96 ConnectorRegistry::iterator i (std::find(connectorRegistry_.begin(), connectorRegistry_.end(),
98 if (i != connectorRegistry_.end())
99 connectorRegistry_.erase(i);
105 senf::ppi::module::Module::addRoute(std::unique_ptr<RouteBase>
route)
107 routes_.push_back(route.release());
108 return routes_.back();
116 registerConnector(connector);
117 connector.setModule(*
this);
124 moduleManager().consoleDir()[
"modules"].add( consoleDirectoryName(*
this), sysConsoleDir_)
125 .doc( senf::prettyName(
typeid(*
this)) +
" " + senf::str(
this));
Connectors public header.
Route< connector::InputConnector, connector::OutputConnector > & route(connector::InputConnector &input, connector::OutputConnector &output)
Define flow information.
Combination of PassiveConnector and OutputConnector.
void noroute(connector::Connector &connector)
Define terminal connectors.
Output connector base-class.
Generic event interface base-class.
Combination of ActiveConnector and OutputConnector.
NodeType & add(std::string const &name, boost::shared_ptr< NodeType > node)
console::DirectoryNode & consoleDir() const
virtual void v_init()
Called after module setup.
bool hasConnector(connector::Connector const &conn) const
true, if route has connector conn
console::DirectoryNode & sysConsoleDir() const