00001
00002
00003
00004
00005
00006
00007
00008
00009
00011 #ifndef MSGCATSTREAM_H
00012 #define MSGCATSTREAM_H
00013 #ifndef IOSFWD
00014 #include <iosfwd>
00015 #define IOSFWD
00016 #endif
00017 #ifndef VECTOR
00018 #include <vector>
00019 #define VECTOR
00020 #endif
00021 #ifndef STRING
00022 #include <string>
00023 #define STRING
00024 #endif
00025
00026 using namespace std;
00027
00028
00029
00030 class MsgCatStream
00031 {
00032 friend ostream& operator<<(ostream& os, const MsgCatStream& m);
00033 public:
00034 MsgCatStream();
00035 MsgCatStream(const char* fileName);
00036 ~MsgCatStream();
00037
00038 const char* GetOutputFileName() const { return fOutFile.c_str(); }
00039
00040 void SetOutputFile(const char* filename) {fOutFile = filename; }
00041 void AddFileToList(const char* filename);
00042 void DoConcatenation();
00043 private:
00044 string fOutFile;
00045 vector<string> fFileList;
00046 };
00047
00048 #endif // MSGCATSTREAM_H