Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MsgCatStream.h

Go to the documentation of this file.
00001 
00002 // $Id: MsgCatStream.h,v 1.6 2001/08/11 15:42:20 messier Exp $
00003 //
00004 // MsgCatStream
00005 //
00006 // A class to hold information about files that are to be concatenated
00007 // into a single file
00008 //
00009 // messier@huhepl.harvard.edu
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;  // Output file of concatenated results
00045   vector<string> fFileList; // List of filenames to concatenate
00046 };
00047 
00048 #endif // MSGCATSTREAM_H

Generated on Mon Jun 16 14:57:43 2008 for loon by  doxygen 1.3.9.1