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