X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FRoute.hh;h=54c41396d2499c58001259565d05103ec68a847e;hb=81ffa1c459b96dd44472bcef37e1e373934ee138;hp=79e478dfd53824f1ccb038048493b88df4241cf2;hpb=145f6a7d0f3a6aaa77b3625351c952d24cb0b8a1;p=senf.git diff --git a/PPI/Route.hh b/PPI/Route.hh index 79e478d..54c4139 100644 --- a/PPI/Route.hh +++ b/PPI/Route.hh @@ -25,6 +25,8 @@ #define HH_Route_ 1 // Custom includes +#include +#include "predecl.hh" //#include "Route.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -32,13 +34,7 @@ namespace senf { namespace ppi { - /** \brief Route descriptor - - Route instances are created by Module::route statements. The Route class provides an - interface to manipulate the flow processing. - */ - template - class Route + class RouteBase { public: void autoThrottling(bool state); ///< Change automatic throttle notification forwarding @@ -61,14 +57,47 @@ namespace ppi { specializations. However, this is an implementation detail which does not affect the exposed interface. */ + + protected: + RouteBase(module::Module & module); + + private: + module::Module * module_; + }; + +}} + +#include "Route.ih" + +namespace senf { +namespace ppi { + + /** \brief Route descriptor + + Route instances are created by Module::route statements. The Route class provides an + interface to manipulate the flow processing. + */ + template + class Route + : public detail::RouteImplementation< boost::is_base_of::value, + boost::is_base_of::value > + { + private: + typedef detail::RouteImplementation< + boost::is_base_of::value, + boost::is_base_of::value > Implementation; + + Route(module::Module & module, Source & source, Target & target); + + friend class module::Module; }; }} ///////////////////////////////hh.e//////////////////////////////////////// -//#include "Route.cci" +#include "Route.cci" //#include "Route.ct" -//#include "Route.cti" +#include "Route.cti" #endif