Commit f1bc88bc authored by Mathias Goldau's avatar Mathias Goldau

[STYLE] Removed space between (if|for|while|switch) and the opening bracket.

parent 003a852c
......@@ -88,7 +88,7 @@ std::string WLogEntry::getLogString( std::string format, bool colors ) const
boost::ireplace_first( s, "%t", m_timeColor + m_time + !m_timeColor );
switch ( m_level )
switch( m_level )
{
case LL_DEBUG:
boost::ireplace_first( s, "%l", m_debugColor + "DEBUG " + !m_debugColor );
......
......@@ -72,7 +72,7 @@ WLogger* WLogger::getLogger()
boost::signals2::connection WLogger::subscribeSignal( LogEvent event, LogEntryCallback callback )
{
switch ( event ) // subscription
switch( event ) // subscription
{
case AddLog:
return m_addLogSignal.connect( callback );
......
......@@ -82,13 +82,13 @@ namespace PROPERTY_TYPE_HELPER
tokens = string_utils::tokenize( str, ";" );
//WAssert( tokens.size() >= 16, "There weren't 16 values for a 4x4 Matrix" );
size_t idx = 0;
while ( idx < tokens.size() )
while( idx < tokens.size() )
{
std::vector< std::string > innerTokens;
innerTokens = string_utils::tokenize( tokens[ idx ], ":" );
// evaluate inner tokens
{
if ( innerTokens[ 0 ] == "c" )
if( innerTokens[ 0 ] == "c" )
{
tf.addColor( boost::lexical_cast< double >( innerTokens[ 1 ].c_str() ), // isovalue
WColor( boost::lexical_cast< double >( innerTokens[ 2 ].c_str() ), // red
......@@ -111,19 +111,19 @@ namespace PROPERTY_TYPE_HELPER
{
std::ostringstream out;
size_t numColors = tf.numColors();
for ( size_t i = 0; i < numColors; ++i )
for( size_t i = 0; i < numColors; ++i )
{
double iso = tf.getColorIsovalue( i );
WColor c = tf.getColor( i );
out << "c:" << iso << ":" << c[ 0 ] << ":" << c[ 1 ] << ":" << c[ 2 ] << ";";
}
size_t numAlphas = tf.numAlphas();
for ( size_t i = 0; i < numAlphas; ++i )
for( size_t i = 0; i < numAlphas; ++i )
{
double iso = tf.getAlphaIsovalue( i );
double alpha = tf.getAlpha( i );
out << "a:" << iso << ":" << alpha;
if ( i != numAlphas-1 )
if( i != numAlphas-1 )
{
out << ";";
}
......
......@@ -142,7 +142,7 @@ void WThreadedRunner::msleep( const int32_t t ) const
boost::signals2::connection WThreadedRunner::subscribeSignal( THREAD_SIGNAL signal, t_ThreadErrorSignalHandlerType notifier )
{
switch (signal)
switch( signal)
{
case WTHREAD_ERROR:
return signal_thread_error.connect( notifier );
......
This diff is collapsed.
......@@ -214,7 +214,7 @@ template< typename T > WValue< T > WDataSetRawHARDI::getNonZeroGradientSignals(
size_t idx = 0;
boost::shared_ptr< WValueSet< T > > vs = boost::shared_dynamic_cast< WValueSet< T > >( m_valueSet );
WValue< T > signal( vs->getWValue( index ) );
for ( std::vector< size_t >::const_iterator cit = m_nonZeroGradientIndexes.begin(); cit != m_nonZeroGradientIndexes.end(); ++cit )
for( std::vector< size_t >::const_iterator cit = m_nonZeroGradientIndexes.begin(); cit != m_nonZeroGradientIndexes.end(); ++cit )
{
result[ idx ] = signal[ *cit ];
++idx;
......
......@@ -85,7 +85,7 @@ WDataSetSingle::SPtr WDataSetSegmentation::clone() const
boost::shared_ptr< WPrototyped > WDataSetSegmentation::getPrototype()
{
if ( !m_prototype )
if( !m_prototype )
{
m_prototype = boost::shared_ptr< WPrototyped >( new WDataSetSegmentation() );
}
......
......@@ -205,13 +205,13 @@ WDataSetSegmentation::copyDataSetsToArray( const std::vector< boost::shared_ptr<
{
const size_t voxelDim = dataSets.size();
size_t countVoxels = 0;
if ( !dataSets.empty() ) countVoxels = ( *dataSets.begin() )->getValueSet()->size();
if( !dataSets.empty() ) countVoxels = ( *dataSets.begin() )->getValueSet()->size();
std::vector< T > data( countVoxels * voxelDim );
// loop over images
size_t dimIndex = 0;
for ( std::vector< boost::shared_ptr< WDataSetScalar > >::const_iterator it = dataSets.begin(); it != dataSets.end(); it++ )
for( std::vector< boost::shared_ptr< WDataSetScalar > >::const_iterator it = dataSets.begin(); it != dataSets.end(); it++ )
{
for( size_t voxelNumber = 0; voxelNumber < countVoxels; voxelNumber++ )
{
......
......@@ -80,7 +80,7 @@ void WGEScreenCapture::operator()( osg::RenderInfo& renderInfo ) const // NOLIN
RecordingInformation& frameCounter = w->get();
// is there something to record?
if ( !frameCounter.m_framesLeft )
if( !frameCounter.m_framesLeft )
{
return;
}
......@@ -92,7 +92,7 @@ void WGEScreenCapture::operator()( osg::RenderInfo& renderInfo ) const // NOLIN
size_t width = 0;
size_t height = 0;
GLenum pixelFormat = GL_RGB;
if (gc->getTraits())
if( gc->getTraits())
{
width = gc->getTraits()->width;
height = gc->getTraits()->height;
......
......@@ -135,7 +135,7 @@ WColor wge::createColorFromHSV( int h, float s, float v )
float q = v * ( 1.0 - s * f );
float t = v * ( 1.0 - s * ( 1.0 - f ) );
switch ( hi )
switch( hi )
{
case 0:
return WColor( v, t, p, 1.0 );
......
......@@ -134,7 +134,7 @@ WGEViewer::getView()
void WGEViewer::setCameraManipulator( osg::ref_ptr<osgGA::MatrixManipulator> manipulator )
{
if ( !m_inAnimationMode )
if( !m_inAnimationMode )
{
m_View->setCameraManipulator( manipulator );
}
......@@ -260,7 +260,7 @@ std::string WGEViewer::QueryCallback::getVendor() const
WGEAnimationManipulator::RefPtr WGEViewer::animationMode( bool on )
{
if ( m_inAnimationMode && !on ) // turn off mode
if( m_inAnimationMode && !on ) // turn off mode
{
m_inAnimationMode = false;
......
......@@ -74,7 +74,7 @@ WGraphicsEngine::~WGraphicsEngine()
void WGraphicsEngine::setMultiThreadedViews( bool enable )
{
#ifdef __APPLE__
if ( enable )
if( enable )
{
WLogger::getLogger()->addLogMessage( "WGraphicsEngine::setMultiThreadedViews not implemented for OSX, yet", "GE", LL_INFO );
}
......@@ -236,7 +236,7 @@ void WGraphicsEngine::requestShaderReload()
boost::signals2::connection WGraphicsEngine::subscribeSignal( GE_SIGNAL signal, t_GEGenericSignalHandlerType notifier )
{
switch ( signal )
switch( signal )
{
case GE_RELOADSHADERS:
return m_reloadShadersSignal.connect( notifier );
......
......@@ -66,7 +66,7 @@ boost::signals2::signal1< void, WPickInfo >* WPickHandler::getPickSignal()
bool WPickHandler::handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa )
{
switch ( ea.getEventType() )
switch( ea.getEventType() )
{
case osgGA::GUIEventAdapter::DRAG : // Mouse pushed an dragged
case osgGA::GUIEventAdapter::PUSH : // Mousebutton pushed
......
......@@ -48,7 +48,7 @@ WPointXYZId WMarchingCubesAlgorithm::interpolate( double fX1, double fY1, double
int WMarchingCubesAlgorithm::getEdgeID( unsigned int nX, unsigned int nY, unsigned int nZ, unsigned int nEdgeNo )
{
switch ( nEdgeNo )
switch( nEdgeNo )
{
case 0:
return 3 * getVertexID( nX, nY, nZ ) + 1;
......
......@@ -412,7 +412,7 @@ template< typename T > WPointXYZId WMarchingCubesAlgorithm::calculateIntersectio
unsigned int v2y = nY;
unsigned int v2z = nZ;
switch ( nEdgeNo )
switch( nEdgeNo )
{
case 0:
v2y += 1;
......
......@@ -45,7 +45,7 @@ void WMarchingLegoAlgorithm::addSurface( size_t x, size_t y, size_t z, size_t su
pt3.newID = 0;
pt4.newID = 0;
switch ( surface )
switch( surface )
{
case 1:
{
......@@ -308,7 +308,7 @@ boost::shared_ptr<WTriangleMesh> WMarchingLegoAlgorithm::genSurfaceOneValue( siz
size_t nPointsInSlice = nX * nY;
boost::shared_ptr< WProgress > progress;
if ( mainProgress )
if( mainProgress )
{
progress = boost::shared_ptr< WProgress >( new WProgress( "Marching Legos", m_nCellsZ ) );
mainProgress->addSubProgress( progress );
......@@ -317,7 +317,7 @@ boost::shared_ptr<WTriangleMesh> WMarchingLegoAlgorithm::genSurfaceOneValue( siz
// Generate isosurface.
for( size_t z = 0; z < m_nCellsZ; z++ )
{
if ( progress )
if( progress )
{
++*progress;
}
......@@ -432,7 +432,7 @@ boost::shared_ptr<WTriangleMesh> WMarchingLegoAlgorithm::genSurfaceOneValue( siz
vecIterator++;
}
if ( progress )
if( progress )
{
progress->finish();
}
......
......@@ -175,7 +175,7 @@ WMarchingLegoAlgorithm::generateSurface( size_t nbCoordsX, size_t nbCoordsY, siz
size_t nPointsInSlice = nX * nY;
boost::shared_ptr< WProgress > progress;
if ( mainProgress )
if( mainProgress )
{
progress = boost::shared_ptr< WProgress >( new WProgress( "Marching Cubes", m_nCellsZ ) );
mainProgress->addSubProgress( progress );
......@@ -184,7 +184,7 @@ WMarchingLegoAlgorithm::generateSurface( size_t nbCoordsX, size_t nbCoordsY, siz
// Generate isosurface.
for( size_t z = 0; z < m_nCellsZ; z++ )
{
if ( progress )
if( progress )
{
++*progress;
}
......@@ -298,7 +298,7 @@ WMarchingLegoAlgorithm::generateSurface( size_t nbCoordsX, size_t nbCoordsY, siz
triMesh->addTriangle( ( *vecIterator ).pointID[0], ( *vecIterator ).pointID[1], ( *vecIterator ).pointID[2] );
vecIterator++;
}
if ( progress )
if( progress )
{
progress->finish();
}
......
......@@ -123,11 +123,11 @@ double radToDeg( double rad )
template < typename T >
T sign( T value )
{
if ( value > T( 0 ) )
if( value > T( 0 ) )
{
return 1;
}
if ( value < T( 0 ) )
if( value < T( 0 ) )
{
return -1;
}
......@@ -152,11 +152,11 @@ T positive( T value )
*/
double smooth( double value, double min, double max )
{
if ( value >= max )
if( value >= max )
{
return max;
}
if ( value < min )
if( value < min )
{
return min;
}
......@@ -277,7 +277,7 @@ public:
{
// get a scaling factor
double zfactor = abs( factor );
if ( factor < 1.0 )
if( factor < 1.0 )
{
zfactor = 1.0 / factor;
}
......@@ -289,7 +289,7 @@ public:
double rtime = time - startTime;
double sfactor = 1.0 + smooth( ( speed * rtime ), 0.0, zfactor );
if ( factor < 1.0 )
if( factor < 1.0 )
{
makeScale( 1.0 / sfactor, 1.0 / sfactor, 1.0 / sfactor );
}
......
......@@ -93,7 +93,7 @@ osg::ref_ptr< osg::Texture2D > WGEOffscreenRenderPass::attach( BufferComponent b
else
{
#if defined(__APPLE__)
if ( internalFormat != GL_RGBA )
if( internalFormat != GL_RGBA )
{
wlog::warn( "WGEOffscreenRenderPass::attach:" ) <<
"Changing internal format to GL_RGBA because the original format is not supported on Mac OSX.";
......@@ -159,7 +159,7 @@ void WGEOffscreenRenderPass::addUniform( osg::ref_ptr< osg::Uniform > uniform )
std::string WGEOffscreenRenderPass::getBufferName( BufferComponent buffer )
{
switch ( buffer )
switch( buffer )
{
case DEPTH_BUFFER:
return "Depth";
......
......@@ -370,7 +370,7 @@ boost::shared_ptr< WModuleConnector > WModule::getConnector( std::string name )
boost::signals2::connection WModule::subscribeSignal( MODULE_SIGNAL signal, t_ModuleGenericSignalHandlerType notifier )
{
switch ( signal )
switch( signal )
{
case WM_READY:
return signal_ready.connect( notifier );
......@@ -384,7 +384,7 @@ boost::signals2::connection WModule::subscribeSignal( MODULE_SIGNAL signal, t_Mo
boost::signals2::connection WModule::subscribeSignal( MODULE_SIGNAL signal, t_ModuleErrorSignalHandlerType notifier )
{
switch (signal)
switch( signal)
{
case WM_ERROR:
return signal_error.connect( notifier );
......@@ -398,7 +398,7 @@ boost::signals2::connection WModule::subscribeSignal( MODULE_SIGNAL signal, t_Mo
const t_GenericSignalHandlerType WModule::getSignalHandler( MODULE_CONNECTOR_SIGNAL signal )
{
switch ( signal )
switch( signal )
{
case CONNECTION_ESTABLISHED:
return boost::bind( &WModule::notifyConnectionEstablished, this, _1, _2 );
......
......@@ -224,7 +224,7 @@ void WModuleConnector::disconnectSignals( boost::shared_ptr<WModuleConnector> /*
boost::signals2::connection WModuleConnector::subscribeSignal( MODULE_CONNECTOR_SIGNAL signal,
t_GenericSignalHandlerType notifier )
{
switch (signal)
switch( signal)
{
case CONNECTION_ESTABLISHED:
return signal_ConnectionEstablished.connect( notifier );
......
......@@ -304,7 +304,7 @@ const std::string WModuleContainer::getDescription() const
void WModuleContainer::addDefaultNotifier( MODULE_SIGNAL signal, t_ModuleGenericSignalHandlerType notifier )
{
boost::unique_lock<boost::shared_mutex> lock;
switch (signal)
switch( signal)
{
case WM_ASSOCIATED:
lock = boost::unique_lock<boost::shared_mutex>( m_associatedNotifiersLock );
......@@ -332,7 +332,7 @@ void WModuleContainer::addDefaultNotifier( MODULE_SIGNAL signal, t_ModuleGeneric
void WModuleContainer::addDefaultNotifier( MODULE_SIGNAL signal, t_ModuleErrorSignalHandlerType notifier )
{
boost::unique_lock<boost::shared_mutex> lock;
switch (signal)
switch( signal)
{
case WM_ERROR:
lock = boost::unique_lock<boost::shared_mutex>( m_errorNotifiersLock );
......@@ -350,7 +350,7 @@ void WModuleContainer::addDefaultNotifier( MODULE_SIGNAL signal, t_ModuleErrorSi
void WModuleContainer::addDefaultNotifier( MODULE_CONNECTOR_SIGNAL signal, t_GenericSignalHandlerType notifier )
{
boost::unique_lock<boost::shared_mutex> lock;
switch (signal)
switch( signal)
{
case CONNECTION_ESTABLISHED:
lock = boost::unique_lock<boost::shared_mutex>( m_connectorNotifiersLock );
......
......@@ -88,7 +88,7 @@ boost::signals2::connection WModuleInputConnector::subscribeSignal( MODULE_CONNE
t_GenericSignalHandlerType notifier )
{
// connect DataChanged signal
switch ( signal )
switch( signal )
{
case DATA_CHANGED:
return signal_DataChanged.connect( notifier );
......
......@@ -60,7 +60,7 @@ boost::signals2::connection WModuleOutputConnector::subscribeSignal( MODULE_CONN
t_GenericSignalHandlerType notifier )
{
// connect DataChanged signal
switch ( signal )
switch( signal )
{
case DATA_CHANGED:
return signal_DataChanged.connect( notifier );
......
......@@ -785,7 +785,7 @@ void WMClusterDisplay::updateWidgets()
std::string WMClusterDisplay::createLabel( size_t id )
{
switch ( m_labelMode )
switch( m_labelMode )
{
case 1:
return boost::lexical_cast<std::string>( m_tree.size( id ) );
......
......@@ -365,7 +365,7 @@ void WMClusterDisplayVoxels::moduleMain()
m_propMinBranchSize->setHidden( true );
m_propSelectedLoadedPartion->setHidden( true );
switch ( m_clusterSelection->get( true ).getItemIndexOfSelected( 0 ) )
switch( m_clusterSelection->get( true ).getItemIndexOfSelected( 0 ) )
{
case 0:
m_propSelectedCluster->setHidden( false );
......@@ -401,7 +401,7 @@ void WMClusterDisplayVoxels::moduleMain()
if( m_buttonExecuteSelection->get( true ) == WPVBaseTypes::PV_TRIGGER_TRIGGERED )
{
m_buttonExecuteSelection->set( WPVBaseTypes::PV_TRIGGER_READY, false );
switch ( m_clusterSelection->get( true ).getItemIndexOfSelected( 0 ) )
switch( m_clusterSelection->get( true ).getItemIndexOfSelected( 0 ) )
{
case 0:
m_currentDisplayMode = CDV_SINGLE;
......@@ -489,7 +489,7 @@ void WMClusterDisplayVoxels::moduleMain()
void WMClusterDisplayVoxels::updateAll()
{
switch ( m_currentDisplayMode )
switch( m_currentDisplayMode )
{
case CDV_SINGLE:
m_activatedClusters.clear();
......
......@@ -76,7 +76,7 @@ coordinateSystemMode WCoordConverter::getCoordinateSystemMode()
int WCoordConverter::numberToCsX( int number )
{
switch ( m_coordinateSystemMode )
switch( m_coordinateSystemMode )
{
case CS_WORLD:
return number;
......@@ -98,7 +98,7 @@ int WCoordConverter::numberToCsX( int number )
int WCoordConverter::numberToCsY( int number )
{
switch ( m_coordinateSystemMode )
switch( m_coordinateSystemMode )
{
case CS_WORLD:
return number;
......@@ -120,7 +120,7 @@ int WCoordConverter::numberToCsY( int number )
int WCoordConverter::numberToCsZ( int number )
{
switch ( m_coordinateSystemMode )
switch( m_coordinateSystemMode )
{
case CS_WORLD:
return number;
......
......@@ -579,7 +579,7 @@ void WMCoordinateSystem::addSagittalGrid( float position )
WPosition p1 = boundingBox.getMin();
WPosition p2 = boundingBox.getMax();
switch ( m_coordConverter->getCoordinateSystemMode() )
switch( m_coordConverter->getCoordinateSystemMode() )
{
case CS_WORLD:
case CS_CANONICAL:
......@@ -660,7 +660,7 @@ void WMCoordinateSystem::addCoronalGrid( float position )
WPosition p1 = boundingBox.getMin();
WPosition p2 = boundingBox.getMax();
switch ( m_coordConverter->getCoordinateSystemMode() )
switch( m_coordConverter->getCoordinateSystemMode() )
{
case CS_WORLD:
case CS_CANONICAL:
......@@ -741,7 +741,7 @@ void WMCoordinateSystem::addAxialGrid( float position )
WPosition p1 = boundingBox.getMin();
WPosition p2 = boundingBox.getMax();
switch ( m_coordConverter->getCoordinateSystemMode() )
switch( m_coordConverter->getCoordinateSystemMode() )
{
case CS_WORLD:
case CS_CANONICAL:
......
......@@ -58,7 +58,7 @@ void WRulerOrtho::create()
osg::ref_ptr< osg::Geode > rulerGeode = osg::ref_ptr< osg::Geode >( new osg::Geode() );
osg::ref_ptr< osg::Geometry > geometry;
switch ( m_scaleMode )
switch( m_scaleMode )
{
case RULER_ALONG_X_AXIS_SCALE_Y:
geometry = createXY();
......@@ -131,7 +131,7 @@ osg::ref_ptr< osg::Geometry > WRulerOrtho::createXY()
int startX = static_cast< int > ( m_lb[0] + 0.5 );
switch ( m_coordConverter->getCoordinateSystemMode() )
switch( m_coordConverter->getCoordinateSystemMode() )
{
case CS_WORLD:
case CS_CANONICAL:
......@@ -205,7 +205,7 @@ osg::ref_ptr< osg::Geometry > WRulerOrtho::createXZ()
int startX = static_cast< int > ( m_lb[0] + 0.5 );
switch ( m_coordConverter->getCoordinateSystemMode() )
switch( m_coordConverter->getCoordinateSystemMode() )
{
case CS_WORLD:
case CS_CANONICAL:
......@@ -278,7 +278,7 @@ osg::ref_ptr< osg::Geometry > WRulerOrtho::createYX()
int startY = static_cast< int > ( m_lb[1] + 0.5 );
switch ( m_coordConverter->getCoordinateSystemMode() )
switch( m_coordConverter->getCoordinateSystemMode() )
{
case CS_WORLD:
case CS_CANONICAL:
......@@ -353,7 +353,7 @@ osg::ref_ptr< osg::Geometry > WRulerOrtho::createYZ()
int startY = static_cast< int > ( m_lb[1] + 0.5 );
switch ( m_coordConverter->getCoordinateSystemMode() )
switch( m_coordConverter->getCoordinateSystemMode() )
{
case CS_WORLD:
case CS_CANONICAL:
......@@ -428,7 +428,7 @@ osg::ref_ptr< osg::Geometry > WRulerOrtho::createZX()
int startZ = static_cast< int > ( m_lb[2] + 0.5 );
switch ( m_coordConverter->getCoordinateSystemMode() )
switch( m_coordConverter->getCoordinateSystemMode() )
{
case CS_WORLD:
case CS_CANONICAL:
......@@ -503,7 +503,7 @@ osg::ref_ptr< osg::Geometry > WRulerOrtho::createZY()
int startZ = static_cast< int > ( m_lb[2] + 0.5 );
switch ( m_coordConverter->getCoordinateSystemMode() )
switch( m_coordConverter->getCoordinateSystemMode() )
{
case CS_WORLD:
case CS_CANONICAL:
......@@ -573,7 +573,7 @@ osg::ref_ptr< osg::Geometry > WRulerOrtho::createZY()
std::string WRulerOrtho::numberToString( int number )
{
switch ( m_scaleMode )
switch( m_scaleMode )
{
case RULER_ALONG_X_AXIS_SCALE_Y:
return boost::lexical_cast< std::string >( m_coordConverter->numberToCsX( number ) );
......
......@@ -99,7 +99,7 @@ void WReaderVTK::readHeader()
<< boost::lexical_cast< std::string >( m_header.at( 1 ).size() );
}
namespace su = string_utils;
if ( ( su::toUpper( su::trim( m_header.at( 2 ) ) ) != "BINARY" )
if( ( su::toUpper( su::trim( m_header.at( 2 ) ) ) != "BINARY" )
&&( su::toUpper( su::trim( m_header.at( 2 ) ) ) != "ASCII" ) )
{
wlog::error( "WReaderVTK" ) << "VTK files in '" << m_header.at( 2 ) << "' format are not yet supported. Must be BINARY or ASCII";
......@@ -165,7 +165,7 @@ void WReaderVTK::readScalars( size_t nbPoints, const std::string& /*name*/ )
std::string line = getLine( "LookupTableOrData" );
std::vector<std::string> tokens = string_utils::tokenize( line );
if ( string_utils::toUpper( tokens.at( 0 ) ) == "LOOKUP_TABLE" )
if( string_utils::toUpper( tokens.at( 0 ) ) == "LOOKUP_TABLE" )
{
line = getLine( "Data" );
tokens = string_utils::tokenize( line );
......@@ -173,21 +173,21 @@ void WReaderVTK::readScalars( size_t nbPoints, const std::string& /*name*/ )
}
boost::shared_ptr<std::vector< float > > data( new std::vector< float >( nbPoints ) );
if ( this->isAscii )
if( this->isAscii )
{
wlog::debug( "WReaderVTK" ) << "Reading ASCII";
size_t point = 0;
while ( point < nbPoints )
while( point < nbPoints )
{
for ( size_t token = 0; token < tokens.size(); ++token )
for( size_t token = 0; token < tokens.size(); ++token )
{
( *data )[ point++ ] = getLexicalCast< float >( tokens.at( token ), "invalid data point" );
if ( point > nbPoints )
if( point > nbPoints )
{
throw WDHException( std::string( "Too many points in file" ) );
}
}
if ( point < nbPoints )
if( point < nbPoints )
{
line = getLine( "Data Loop" );
tokens = string_utils::tokenize( line );
......@@ -196,