5 #include "globaldata.hpp"
9 /***********************************************************************/
16 virtual void output(int, vector<double>) = 0;
17 virtual void initFile(string) = 0;
18 virtual void resetFile() = 0;
19 virtual string getFileName() = 0;
20 virtual void initFile(string, vector<string>) = 0;
21 virtual void output(vector<double>) = 0;
24 GlobalData* globaldata;
29 /***********************************************************************/
31 class ThreeColumnFile : public FileOutput {
34 ThreeColumnFile(string n) : FileOutput(), inName(n), counter(0), outName(getPathName(n) + ".temp." + getSimpleName(n)) { };
36 void initFile(string);
37 void output(int, vector<double>);
39 string getFileName() { return inName; };
41 void initFile(string, vector<string>) {};
42 void output(vector<double>) {};
53 /***********************************************************************/
54 class OneColumnFile : public FileOutput {
58 OneColumnFile(string n) : inName(n), counter(0), outName(getPathName(n) + ".temp." + getSimpleName(n)) {};
60 void output(int, vector<double>);
61 void initFile(string);
63 string getFileName() { return inName; };
65 void initFile(string, vector<string>) {};
66 void output(vector<double>) {};
77 /***********************************************************************/
78 class SharedOneColumnFile : public FileOutput {
82 SharedOneColumnFile(string n) : inName(n), counter(0), outName(getPathName(n) + ".temp." + getSimpleName(n)) {};
83 ~SharedOneColumnFile();
84 void output(int, vector<double>);
85 void initFile(string);
87 string getFileName() { return inName; };
89 void initFile(string, vector<string>) {};
90 void output(vector<double>) {};
102 /***********************************************************************/
104 class SharedThreeColumnFile : public FileOutput {
107 SharedThreeColumnFile(string n, string groups) : FileOutput(), groupLabel(groups), inName(n), counter(0), numGroup(1), outName(getPathName(n) + ".temp." + getSimpleName(n)) { };
108 ~SharedThreeColumnFile();
109 void initFile(string);
110 void output(int, vector<double>);
112 string getFileName() { return inName; };
115 void initFile(string, vector<string>) {};
116 void output(vector<double>) {};
119 string inName, groupLabel;
123 int counter, numGroup;
126 /***********************************************************************/
128 class ThreeColumnFile2 : public FileOutput {
131 ThreeColumnFile2(string n) : FileOutput(), inName(n), counter(0), outName(getPathName(n) + ".temp." + getSimpleName(n)) { globaldata = GlobalData::getInstance(); };
134 //to make compatible with parent class
135 void output(int, vector<double>){};
136 void initFile(string){};
138 void initFile(string, vector<string>);
139 void output(vector<double>);
141 string getFileName() { return inName; };
150 /***********************************************************************/