25 #ifndef WMODULEINPUTFORWARDDATA_H
26 #define WMODULEINPUTFORWARDDATA_H
31 #include <boost/shared_ptr.hpp>
34 #include "../common/WLogger.h"
36 #include "WModuleInputData.h"
37 #include "WModuleOutputData.h"
44 template<
typename T >
51 typedef boost::shared_ptr< WModuleInputForwardData< T > >
PtrType;
94 virtual void forward( boost::shared_ptr< WModuleConnector > to )
104 virtual void unforward( boost::shared_ptr< WModuleConnector > to )
106 m_out->disconnect( to );
118 static PtrType
create( boost::shared_ptr< WModule > module, std::string name =
"", std::string description =
"" );
130 static PtrType
createAndAdd( boost::shared_ptr< WModule > module, std::string name =
"", std::string description =
"" );
136 boost::shared_ptr< WModuleOutputData< T > >
m_out;
145 virtual void notifyDataChange( boost::shared_ptr<WModuleConnector> input, boost::shared_ptr<WModuleConnector> output )
159 virtual void notifyConnectionClosed( boost::shared_ptr<WModuleConnector> here, boost::shared_ptr<WModuleConnector> there )
170 template <
typename T >
173 std::string description )
178 template <
typename T >
181 std::string description )
184 module->addConnector( c );
189 #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.