X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FModule.hh;h=31ef445862e86c6913e0030c8eb6e0e45269d0b5;hb=9035ae419b1dc9dc537e00d0f7ffc4b22e19422a;hp=16e35058eb3abe4a1f5cb27bfc5c0693be923460;hpb=ee799218e18836b47f08e0e6515d2998155d5e19;p=senf.git diff --git a/PPI/Module.hh b/PPI/Module.hh index 16e3505..31ef445 100644 --- a/PPI/Module.hh +++ b/PPI/Module.hh @@ -178,8 +178,12 @@ namespace module { protected: Module(); +#ifndef DOXYGEN template Route & route(Source & source, Target & target); +#else + Route & + route(connector::InputConnector & input, connector::OutputConnector & output); ///< Define flow information /**< Using the route() and noroute() members, the information flow within the module is defined. Routing @@ -200,11 +204,22 @@ namespace module { parameters like throttling parameters. \param[in] source Data source, object which controls - incoming data + incoming data (connector or event) \param[in] target Data target, object which controls - outgoing data + outgoing data (connector or event) \returns Route instance describing this route */ + Route & + route(connector::InputConnector & input, EventDescriptor & output); + ///< Define flow information + /**< \see \ref route() */ + + Route & + route(EventDescriptor & input, connector::OutputConnector & output); + ///< Define flow information + /**< \see \ref route() */ +#endif + void noroute(connector::Connector & connector); ///< Define terminal connectors /**< The noroute() member explicitly declares, that a connector is terminal and does not directly @@ -244,9 +259,7 @@ namespace module { #ifndef DOXYGEN virtual void macro_SENF_PPI_MODULE_missing() = 0; -#endif -#ifndef DOXYGEN private: #endif virtual void init(); ///< Called just before the network is run