]> git.donarmstrong.com Git - mothur.git/blob - mothurout.h
testing mpi
[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         private:
31                 static MothurOut* _uniqueInstance;
32                 MothurOut( const MothurOut& ); // Disable copy constructor
33                 void operator=( const MothurOut& ); // Disable assignment operator
34                 MothurOut() {};
35                 ~MothurOut();
36
37                 string logFileName;
38                 ofstream out;
39
40 };
41 /***********************************************/
42
43 #endif
44