// ========================================================================= // @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co) // ========================================================================= #include #include int main( int argc, char* argv[] ) { if( argc != 3 ) { std::cerr << "Usage: " << argv[ 0 ] << " input output" << std::endl; return( 1 ); } // end if try { typedef cpPlugins::Pipeline TPipeline; TPipeline::SharedPtr pipeline = TPipeline::New( ); pipeline->ExecutionDebugOn( ); pipeline->CreateNode( "cpPluginsBase::RawFileReader", "reader" ); pipeline->CreateNode( "cpPluginsBase::RawFileWriter", "writer" ); pipeline->SetInValue( "FileName@reader", std::string( argv[ 1 ] ) ); pipeline->SetInValue( "FileName@writer", std::string( argv[ 2 ] ) ); pipeline->Connect( "Output@reader", "Input@writer" ); pipeline->Update( ); } catch( std::exception& err ) { std::cerr << "ERROR CAUGHT: " << err.what( ) << std::endl; return( 1 ); } // end try return( 0 ); } // eof - $RCSfile$