File indexing completed on 2024-09-07 04:34:26
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef FILEOUT_H
0011 #define FILEOUT_H
0012
0013 #include <fstream>
0014 #include <iostream>
0015
0016 #include <vector>
0017
0018
0019 #include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
0020
0021 class ALIFileOut : public std::ofstream {
0022 public:
0023 ALIFileOut() {}
0024 ALIFileOut(const ALIstring& name) : std::ofstream(), theName(name) {}
0025 ~ALIFileOut() override {}
0026
0027
0028 static ALIFileOut& getInstance(const ALIstring& filename);
0029
0030
0031 const ALIstring& name() { return theName; }
0032
0033
0034 private:
0035
0036 static std::vector<ALIFileOut*> theInstances;
0037
0038
0039 ALIstring theName;
0040 };
0041
0042 #endif