File: OutputFile.h

package info (click to toggle)
clustalx 2.1%2Blgpl-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,332 kB
  • ctags: 3,424
  • sloc: cpp: 40,050; sh: 163; xml: 102; makefile: 11
file content (33 lines) | stat: -rw-r--r-- 873 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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