]> git.donarmstrong.com Git - mothur.git/blob - currentfile.h
changes while testing
[mothur.git] / currentfile.h
1 #ifndef CURRENTFILE_H
2 #define CURRENTFILE_H
3
4 /*
5  *  currentfile.h
6  *  Mothur
7  *
8  *  Created by westcott on 3/15/11.
9  *  Copyright 2011 Schloss Lab. All rights reserved.
10  *
11  */
12
13 #include "mothurout.h"
14 #include "mothur.h"
15
16 /***********************************************/
17
18 class CurrentFile {
19         
20         public:
21                 static CurrentFile* getInstance() {
22                         if(instance == 0) {     instance = new CurrentFile();   }
23                         return instance;
24                 }
25                 
26                 string getPhylipFile()          { return phylipfile;            }
27                 string getColumnFile()          { return columnfile;            }
28                 string getListFile()            { return listfile;                      }
29                 string getRabundFile()          { return rabundfile;            }
30                 string getSabundFile()          { return sabundfile;            }
31                 string getNameFile()            { return namefile;                      }       
32                 string getGroupFile()           { return groupfile;                     }       
33                 string getOrderFile()           { return orderfile;                     }
34                 string getOrderGroupFile()      { return ordergroupfile;        }
35                 string getTreeFile()            { return treefile;                      }
36                 string getSharedFile()          { return sharedfile;            }
37                 string getRelAbundFile()        { return relabundfile;          }
38                 string getDesignFile()          { return designfile;            }
39                 string getFastaFile()           { return fastafile;                     }
40                 string getSFFFile()                     { return sfffile;                       }
41                 string getQualFile()            { return qualfile;                      }
42                 string getOligosFile()          { return oligosfile;            }
43                 
44                 
45                 void setListFile(string f)                      { listfile = m->getFullPathName(f);                             }
46                 void setTreeFile(string f)                      { treefile = m->getFullPathName(f);                             }
47                 void setGroupFile(string f)                     { groupfile = m->getFullPathName(f);                    }               
48                 void setPhylipFile(string f)            { phylipfile = m->getFullPathName(f);                   }
49                 void setColumnFile(string f)            { columnfile = m->getFullPathName(f);                   }
50                 void setNameFile(string f)                      { namefile = m->getFullPathName(f);                             }       
51                 void setRabundFile(string f)            { rabundfile = m->getFullPathName(f);                   }
52                 void setSabundFile(string f)            { sabundfile = m->getFullPathName(f);                   }
53                 void setSharedFile(string f)            { sharedfile = m->getFullPathName(f);                   }
54                 void setRelAbundFile(string f)          { relabundfile = m->getFullPathName(f);                 }
55                 void setOrderFile(string f)                     { orderfile = m->getFullPathName(f);                    }
56                 void setOrderGroupFile(string f)        { ordergroupfile = m->getFullPathName(f);               }
57                 void setDesignFile(string f)            { designfile = m->getFullPathName(f);                   }
58                 void setFastaFile(string f)                     { fastafile = m->getFullPathName(f);                    }
59                 void setSFFFile(string f)                       { sfffile = m->getFullPathName(f);                              }
60                 void setQualFile(string f)                      { qualfile = m->getFullPathName(f);                             }
61                 void setOligosFile(string f)            { oligosfile = m->getFullPathName(f);                   }
62         
63         private:
64                 MothurOut* m;
65                 string phylipfile, columnfile, listfile, rabundfile, sabundfile, namefile, groupfile, designfile;
66                 string orderfile, treefile, sharedfile, ordergroupfile, relabundfile, fastafile, qualfile, sfffile, oligosfile;
67                 
68                 static CurrentFile* instance;
69                 CurrentFile( const CurrentFile& ); // Disable copy constructor
70                 void operator=( const CurrentFile& ); // Disable assignment operator
71         
72                 CurrentFile() { 
73                         phylipfile = "";
74                         columnfile = "";
75                         listfile = "";
76                         rabundfile = "";
77                         sabundfile = "";
78                         namefile = "";
79                         groupfile = "";
80                         designfile = "";
81                         orderfile = "";
82                         treefile = "";
83                         sharedfile = "";
84                         ordergroupfile = "";
85                         relabundfile = "";
86                         fastafile = "";
87                         qualfile = "";
88                         sfffile = "";
89                         oligosfile = "";
90                 }
91                 ~CurrentFile() { instance = 0; }
92 };
93 /***********************************************/
94
95 #endif
96