]> git.donarmstrong.com Git - mothur.git/blob - mothurout.h
added checks for ^C to quit command instead of program
[mothur.git] / mothurout.h
1 #ifndef MOTHUROUT_H
2 #define MOTHUROUT_H
3
4 /*
5  *  m->mothurOut.h
6  *  Mothur
7  *
8  *  Created by westcott on 2/25/10.
9  *  Copyright 2010 Schloss Lab. All rights reserved.
10  *
11  */
12
13 #include "mothur.h"
14
15 /***********************************************/
16
17 class MothurOut {
18         
19         public:
20                 static MothurOut* getInstance();
21                 void setFileName(string);
22                 
23                 void mothurOut(string);
24                 void mothurOutEndLine();
25                 void mothurOutJustToLog(string);
26                 void errorOut(exception&, string, string);
27                 int control_pressed;
28                 bool executing;
29                 
30
31         private:
32                 static MothurOut* _uniqueInstance;
33                 MothurOut( const MothurOut& ); // Disable copy constructor
34                 void operator=( const MothurOut& ); // Disable assignment operator
35                 MothurOut() {};
36                 ~MothurOut();
37
38                 string logFileName;
39                 ofstream out;
40
41 };
42 /***********************************************/
43
44 #endif
45