Mac binaries
[jabaws.git] / website / archive / binaries / mac / src / clustalw / src / general / OutputFile.h
diff --git a/website/archive/binaries/mac/src/clustalw/src/general/OutputFile.h b/website/archive/binaries/mac/src/clustalw/src/general/OutputFile.h
new file mode 100644 (file)
index 0000000..43c3b56
--- /dev/null
@@ -0,0 +1,33 @@
+/**
+ * Author: Mark Larkin
+ * 
+ * Copyright (c) 2007 Des Higgins, Julie Thompson and Toby Gibson.  
+ */
+#ifndef OUTPUTFILE_H
+#define OUTPUTFILE_H
+#include <memory>
+#include <fstream>
+namespace clustalw
+{
+
+class OutputFile
+{
+    public:
+        OutputFile();
+        ~OutputFile();
+        bool openFile(std::string* fileName, const std::string msg, const std::string* path, 
+                      const std::string ext, const std::string fileType);
+        bool isOpen();
+        //void writeToFile(std::string* info);
+        std::ofstream* getPtrToFile();
+    private:
+        std::string getOutputFileName(const std::string prompt, std::string path, 
+                                      const std::string fileExtension);
+        std::auto_ptr<std::ofstream> file;
+        std::string typeOfFileMsg; // used for closing message!
+        std::string name;
+};
+
+}
+#endif
+