]> git.donarmstrong.com Git - mothur.git/blob - currentfile.h
adding current file class
[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         
22         static CurrentFile* getInstance();
23         
24         string getPhylipFile()          { return phylipfile;            }
25         string getColumnFile()          { return columnfile;            }
26         string getListFile()            { return listfile;                      }
27         string getRabundFile()          { return rabundfile;            }
28         string getSabundFile()          { return sabundfile;            }
29         string getNameFile()            { return namefile;                      }       
30         string getGroupFile()           { return groupfile;                     }       
31         string getOrderFile()           { return orderfile;                     }
32         string getOrderGroupFile()      { return ordergroupfile;        }
33         string getTreeFile()            { return treefile;                      }
34         string getSharedFile()          { return sharedfile;            }
35         string getRelAbundFile()        { return relabundfile;          }
36         string getDesignFile()          { return designfile;            }
37         string getFastaFile()           { return fastafile;                     }
38         string getSFFFile()                     { return sfffile;                       }
39         string getQualFile()            { return qualfile;                      }
40         string getOligosFile()          { return oligosfile;            }
41         
42         
43         void setListFile(string f)                      { listfile = m->getFullPathName(f);                             }
44         void setTreeFile(string f)                      { treefile = m->getFullPathName(f);                             }
45         void setGroupFile(string f)                     { groupfile = m->getFullPathName(f);                    }               
46         void setPhylipFile(string f)            { phylipfile = m->getFullPathName(f);                   }
47         void setColumnFile(string f)            { columnfile = m->getFullPathName(f);                   }
48         void setNameFile(string f)                      { namefile = m->getFullPathName(f);                             }       
49         void setRabundFile(string f)            { rabundfile = m->getFullPathName(f);                   }
50         void setSabundFile(string f)            { sabundfile = m->getFullPathName(f);                   }
51         void setSharedFile(string f)            { sharedfile = m->getFullPathName(f);                   }
52         void setRelAbundFile(string f)          { relabundfile = m->getFullPathName(f);                 }
53         void setOrderFile(string f)                     { orderfile = m->getFullPathName(f);                    }
54         void setOrderGroupFile(string f)        { ordergroupfile = m->getFullPathName(f);               }
55         void setDesignFile(string f)            { designfile = m->getFullPathName(f);                   }
56         void setFastaFile(string f)                     { fastafile = m->getFullPathName(f);                    }
57         void setSFFFile(string f)                       { sfffile = m->getFullPathName(f);                              }
58         void setQualFile(string f)                      { qualfile = m->getFullPathName(f);                             }
59         void setOligosFile(string f)            { oligosfile = m->getFullPathName(f);                   }
60         
61 private:
62         
63         static CurrentFile* _uniqueInstance;
64         CurrentFile( const CurrentFile& ); // Disable copy constructor
65         void operator=( const CurrentFile& ); // Disable assignment operator
66         CurrentFile();
67         ~CurrentFile();
68         
69         MothurOut* m;
70         string phylipfile, columnfile, listfile, rabundfile, sabundfile, namefile, groupfile, designfile;
71         string orderfile, treefile, sharedfile, ordergroupfile, relabundfile, fastafile, qualfile, sfffile, oligosfile;
72         
73         
74 };
75 /***********************************************/
76
77 #endif
78