Commit 9808142f authored by Mathias Goldau's avatar Mathias Goldau
Browse files

[CHANGE] It is better to use for class members the contructor init list.

parent 990e3825
......@@ -24,26 +24,21 @@
#include <string>
// #include "WModule.h"
#include "WModuleOutputConnector.h"
#include "WModuleConnectorSignals.h"
#include "../common/WCondition.h"
#include "WModuleConnectorSignals.h"
#include "WModuleOutputConnector.h"
#include "WModuleInputConnector.h"
WModuleInputConnector::WModuleInputConnector( boost::shared_ptr< WModule > module, std::string name, std::string description ):
WModuleConnector( module, name, description ),
m_dataChangedCondition( new WCondition() ),
m_updated( false )
{
// initialize members
// connect some signals
// This signal is some kind of "forwarder" for the data_changed signal of an output connector.
signal_DataChanged.connect( getSignalHandler( DATA_CHANGED ) );
// setup conditions
m_dataChangedCondition = boost::shared_ptr< WCondition >( new WCondition() );
// if connection is closed, also fire "data change"
signal_ConnectionClosed.connect( boost::bind( &WModuleInputConnector::setUpdated, this ) );
signal_ConnectionClosed.connect( boost::bind( &WCondition::notify, m_dataChangedCondition ) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment