5 * Created by Pat Schloss on 12/19/10.
6 * Copyright 2010 Schloss Lab. All rights reserved.
11 #include "mothurout.h"
12 #include "reportfile.h"
14 /**************************************************************************************************/
16 ReportFile::ReportFile(){
18 m = MothurOut::getInstance();
21 m->errorOut(e, "ReportFile", "ReportFile");
26 /**************************************************************************************************/
28 ReportFile::ReportFile(ifstream& repFile, string repFileName){
30 m = MothurOut::getInstance();
32 m->openInputFile(repFileName, repFile);
36 m->errorOut(e, "ReportFile", "ReportFile");
42 /**************************************************************************************************/
44 ReportFile::ReportFile(ifstream& repFile){
47 m = MothurOut::getInstance();
50 repFile >> queryLength;
51 repFile >> templateName;
52 repFile >> templateLength;
53 repFile >> searchMethod;
54 repFile >> dummySearchScore;
55 repFile >> alignmentMethod;
56 repFile >> queryStart;
58 repFile >> templateStart;
59 repFile >> templateEnd;
60 repFile >> pairwiseAlignmentLength;
61 repFile >> gapsInQuery;
62 repFile >> gapsInTemplate;
63 repFile >> longestInsert;
64 repFile >> simBtwnQueryAndTemplate;
66 if(dummySearchScore != "nan"){
67 istringstream stream(dummySearchScore);
68 stream >> searchScore;
77 m->errorOut(e, "ReportFile", "ReportFile");
83 /**************************************************************************************************/