--- /dev/null
+// =========================================================================
+// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
+// =========================================================================
+
+#include <iostream>
+#include <cpPlugins/DataObject.h>
+#include <cpPlugins/Filter.h>
+#include <cpPlugins/Pipeline.h>
+
+int main( int argc, char* argv[] )
+{
+ typedef cpPlugins::Pipeline TPipeline;
+ typedef cpPlugins::Filter TFilter;
+
+ if( argc != 2 )
+ {
+ std::cerr << "Usage: " << argv[ 0 ] << " file" << std::endl;
+ return( 1 );
+ } // end if
+
+ try
+ {
+ TPipeline::SharedPtr pipeline = TPipeline::New( );
+ TFilter* reader =
+ pipeline->CreateNode( "cpPluginsBase::RawFileReader" )->
+ Cast< TFilter >( );
+ reader->SetInValue( "FileName", std::string( argv[ 1 ] ) );
+ reader->Update( );
+
+ std::cout << *( reader->GetOutput( "Output" ) ) << std::endl;
+ }
+ catch( std::exception& err )
+ {
+ std::cerr << "ERROR CAUGHT: " << err.what( ) << std::endl;
+ return( 1 );
+ } // end try
+ return( 0 );
+}
+
+// eof - $RCSfile$