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