Mac binaries
[jabaws.git] / website / archive / binaries / mac / src / clustalw / src / general / OutputFile.h
1 /**
2  * Author: Mark Larkin
3  * 
4  * Copyright (c) 2007 Des Higgins, Julie Thompson and Toby Gibson.  
5  */
6 #ifndef OUTPUTFILE_H
7 #define OUTPUTFILE_H
8 #include <memory>
9 #include <fstream>
10 namespace clustalw
11 {
12
13 class OutputFile
14 {
15     public:
16         OutputFile();
17         ~OutputFile();
18         bool openFile(std::string* fileName, const std::string msg, const std::string* path, 
19                       const std::string ext, const std::string fileType);
20         bool isOpen();
21         //void writeToFile(std::string* info);
22         std::ofstream* getPtrToFile();
23     private:
24         std::string getOutputFileName(const std::string prompt, std::string path, 
25                                       const std::string fileExtension);
26         std::auto_ptr<std::ofstream> file;
27         std::string typeOfFileMsg; // used for closing message!
28         std::string name;
29 };
30
31 }
32 #endif
33