]> git.donarmstrong.com Git - mothur.git/blob - mothurout.h
modified trim.seqs to split by primer name if primer name is given, and warn if dupli...
[mothur.git] / mothurout.h
1 #ifndef MOTHUROUT_H
2 #define MOTHUROUT_H
3
4 /*
5  *  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                 void closeLog();
28
29                 int control_pressed;
30                 bool executing;
31
32         private:
33                 static MothurOut* _uniqueInstance;
34                 MothurOut( const MothurOut& ); // Disable copy constructor
35                 void operator=( const MothurOut& ); // Disable assignment operator
36                 MothurOut() { control_pressed = false; };
37                 ~MothurOut();
38
39                 string logFileName;
40                 ofstream out;
41                 
42                 int mem_usage(double&, double&);
43
44 };
45 /***********************************************/
46
47 #endif
48