}
// -------------------------------------------------------------------------
-std::string cpPlugins::Workspace::
+void cpPlugins::Workspace::
Execute( )
{
// Find sinks
std::set< std::string > sinks = this->m_Graph->GetSinks( );
// Update sinks
- std::string err = "";
for( auto sIt = sinks.begin( ); sIt != sinks.end( ); ++sIt )
- {
- std::string lerr = this->Execute( *sIt );
- if( lerr != "" )
- err += lerr + std::string( "\n" );
-
- } // rof
- return( err );
+ this->Execute( *sIt );
}
// -------------------------------------------------------------------------
-std::string cpPlugins::Workspace::
+void cpPlugins::Workspace::
Execute( const std::string& name )
{
// Get filter
ProcessObject* f = this->GetFilter( name );
if( f == NULL )
- return(
- std::string( "cpPlugins::Workspace: Vertex \"" ) +
- name + std::string( "\" is not a filter." )
+ {
+ itkGenericExceptionMacro(
+ "cpPlugins::Workspace: Vertex \"" << name << "\" is not a filter."
);
- // Execute and return
- return( f->Update( ) );
+ } // fi
+
+ // Execute
+ f->Update( );
}
// eof - $RCSfile$