1 // =========================================================================
2 // @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
3 // =========================================================================
6 #include <cpPlugins/Pipeline.h>
8 int main( int argc, char* argv[] )
10 typedef cpPlugins::Pipeline TPipeline;
11 typedef cpPlugins::Filter TFilter;
15 std::cerr << "Usage: " << argv[ 0 ] << " file" << std::endl;
21 TPipeline::SharedPtr pipeline = TPipeline::New( );
22 pipeline->CreateNode( "cpPluginsBase::RawFileReader", "reader" );
23 pipeline->SetInValue( "FileName@reader", std::string( argv[ 1 ] ) );
26 std::cout << *( pipeline->GetOutput( "Output@reader" ) ) << std::endl;
28 catch( std::exception& err )
30 std::cerr << "ERROR CAUGHT: " << err.what( ) << std::endl;