2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
15 \brief Module non-inline template implementation */
22 //-/////////////////////////////////////////////////////////////////////////////////////////////////
24 //-/////////////////////////////////////////////////////////////////////////////////////////////////
25 // senf::ppi::module::Module
29 template <class Descriptor, class Target>
30 prefix_ void senf::ppi::module::Module::registerEvent(Descriptor & descriptor, Target target)
32 eventManager().registerEvent(
34 EventManager::Callback<Descriptor>::make(target,*this),
36 descriptor.enabled(true);
40 template <class Target>
41 prefix_ void senf::ppi::module::Module::registerEvent(EventDescriptor & descriptor,
46 //-/////////////////////////////////////////////////////////////////////////////////////////////////
47 // senf::ppi::module::detail namespace members
49 template <class Source, class Target>
50 prefix_ void senf::ppi::module::detail::RouteHelper<Source,Target>::
51 route(Module & module, Source & source, Target & target,
52 connector::InputConnector &, connector::OutputConnector &)
54 module.registerConnector(source);
55 module.registerConnector(target);
58 template <class Source, class Target>
59 prefix_ void senf::ppi::module::detail::RouteHelper<Source,Target>::
60 route(Module & module, Source & source, Target & target,
61 connector::InputConnector &, EventDescriptor &)
63 module.registerConnector(source);
66 template <class Source, class Target>
67 prefix_ void senf::ppi::module::detail::RouteHelper<Source,Target>::
68 route(Module & module, Source & source, Target & target,
69 EventDescriptor &, connector::OutputConnector &)
71 module.registerConnector(target);
74 //-/////////////////////////////////////////////////////////////////////////////////////////////////
82 // c-file-style: "senf"
83 // indent-tabs-mode: nil
84 // ispell-local-dictionary: "american"
85 // compile-command: "scons -u test"