28 #include <boost/signals2/connection.hpp>
29 #include <boost/signals2/signal.hpp>
31 #include "../common/WCondition.h"
32 #include "WModuleConnectorSignals.h"
33 #include "WModuleInputConnector.h"
34 #include "WModuleOutputConnector.h"
69 t_GenericSignalHandlerType notifier )
Base class for modelling connections between kernel modules.
virtual boost::signals2::connection subscribeSignal(MODULE_CONNECTOR_SIGNAL signal, t_GenericSignalHandlerType notifier)
Connects a specified notify function with a signal this module instance is offering.
std::shared_ptr< WCondition > m_dataChangedCondition
Condition fired whenever data changes.
virtual bool lazyConnectable(std::shared_ptr< WModuleConnector > con)
Checks whether the specified connector is connectable to this one, but ignores compatibility the type...
virtual bool isInputConnector() const
Returns true if this instance is an WModuleInputConnector.
virtual bool connectable(std::shared_ptr< WModuleConnector > con)
Checks whether the specified connector is an input connector.
WModuleOutputConnector(std::shared_ptr< WModule > module, std::string name="", std::string description="")
Constructor.
virtual void propagateDataChange()
Propagates the signal "DATA_CHANGED" to all connected items.
boost::signals2::connection subscribeSignal(MODULE_CONNECTOR_SIGNAL signal, t_GenericSignalHandlerType notifier)
Connects (subscribes) a specified notify function with a signal this module instance is offering.
virtual bool isOutputConnector() const
Returns true if this instance is an WModuleOutputConnector.
t_GenericSignalType signal_DataChanged
Signal fired whenever new data should be propagated.
virtual ~WModuleOutputConnector()
Destructor.