25 #ifndef WMODULEINPUTFORWARDDATA_H
26 #define WMODULEINPUTFORWARDDATA_H
30 #include <boost/shared_ptr.hpp>
32 #include "../common/WLogger.h"
34 #include "WModuleInputData.h"
35 #include "WModuleOutputData.h"
42 template<
typename T >
49 typedef boost::shared_ptr< WModuleInputForwardData< T > >
PtrType;
92 virtual void forward( boost::shared_ptr< WModuleConnector > to )
102 virtual void unforward( boost::shared_ptr< WModuleConnector > to )
104 m_out->disconnect( to );
116 static PtrType create( boost::shared_ptr< WModule > module, std::string name =
"", std::string description =
"" );
128 static PtrType createAndAdd( boost::shared_ptr< WModule > module, std::string name =
"", std::string description =
"" );
134 boost::shared_ptr< WModuleOutputData< T > >
m_out;
143 virtual void notifyDataChange( boost::shared_ptr<WModuleConnector> input, boost::shared_ptr<WModuleConnector> output )
157 virtual void notifyConnectionClosed( boost::shared_ptr<WModuleConnector> here, boost::shared_ptr<WModuleConnector> there )
168 template <
typename T >
171 std::string description )
176 template <
typename T >
179 std::string description )
182 module->addConnector( c );
187 #endif // WMODULEINPUTFORWARDDATA_H
Class offering an instantiate-able data connection between modules.
virtual void notifyConnectionClosed(boost::shared_ptr< WModuleConnector > here, boost::shared_ptr< WModuleConnector > there)
Gets called whenever a connection between a remote and local connector gets closed.