]> git.donarmstrong.com Git - mothur.git/blob - mothurout.h
added versioning info to all shortcut files mothur makes.
[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                 string getDefaultPath() { return defaultPath; }
29                 void setDefaultPath(string);
30                 
31                 string getReleaseDate() { return releaseDate; }
32                 void setReleaseDate(string r) { releaseDate = r; }
33                 string getVersion() { return version; }
34                 void setVersion(string r) { version = r; }
35
36
37                 int control_pressed;
38                 bool executing;
39                 
40
41         private:
42                 static MothurOut* _uniqueInstance;
43                 MothurOut( const MothurOut& ); // Disable copy constructor
44                 void operator=( const MothurOut& ); // Disable assignment operator
45                 MothurOut() { control_pressed = false; defaultPath=""; };
46                 ~MothurOut();
47
48                 string logFileName;
49                 string defaultPath;
50                 string releaseDate, version;
51                 
52                 ofstream out;
53                 
54                 int mem_usage(double&, double&);
55
56 };
57 /***********************************************/
58
59 #endif
60