1 // =========================================================================
2 // @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
3 // =========================================================================
6 #include <cpPlugins/Pipeline.h>
8 int main( int argc, char* argv[] )
12 std::cerr << "Usage: " << argv[ 0 ] << " input output" << std::endl;
18 typedef cpPlugins::Pipeline TPipeline;
20 TPipeline::SharedPtr pipeline = TPipeline::New( );
21 pipeline->ExecutionDebugOn( );
22 pipeline->CreateNode( "cpPluginsBase::RawFileReader", "reader" );
23 pipeline->CreateNode( "cpPluginsBase::RawFileWriter", "writer" );
24 pipeline->SetInValue( "FileName@reader", std::string( argv[ 1 ] ) );
25 pipeline->SetInValue( "FileName@writer", std::string( argv[ 2 ] ) );
26 pipeline->Connect( "Output@reader", "Input@writer" );
29 catch( std::exception& err )
31 std::cerr << "ERROR CAUGHT: " << err.what( ) << std::endl;