/** ** Copyright (c) 2007-2010 Illumina, Inc. ** ** This software is covered by the "Illumina Genome Analyzer Software ** License Agreement" and the "Illumina Source Code License Agreement", ** and certain third party copyright/licenses, and any user of this ** source file is bound by the terms therein (see accompanying files ** Illumina_Genome_Analyzer_Software_License_Agreement.pdf and ** Illumina_Source_Code_License_Agreement.pdf and third party ** copyright/license notices). ** ** This file is part of the Consensus Assessment of Sequence And VAriation ** (CASAVA) software package. ** **/ // // g++ export_read_example.cpp ../../lib/blt_util/export_stream_reader.cpp ../../lib/blt_util/export_line_parser.cpp ../../lib/blt_util/log.cpp ../../lib/blt_util/blt_exception.cpp -I../../include -I$BOOST_ROOT/include // #include "blt_util/export_stream_reader.hh" #include int main(int argc, char **argv) { if(argc != 2) { std::cerr << "usage: " << argv[0] << " export_file\n"; return 0; } const char* exportfile(argv[1]); export_file_reader exr(exportfile); unsigned i(0); while(exr.next()) { const export_line_parser& exl(*exr.exline()); std::cerr << "machine: " << exl.machine() << "\n"; std::cerr << "full export line: "; exl.write_export_line(std::cerr); std::cerr << "\n"; if(i==3){ std::cerr << "\ndemo exr state dump:\n\n"; exr.report_state(std::cerr); exit(EXIT_FAILURE); } ++i; } }