fei_LogFile.hpp

00001 /*--------------------------------------------------------------------*/
00002 /*    Copyright 2005 Sandia Corporation.                              */
00003 /*    Under the terms of Contract DE-AC04-94AL85000, there is a       */
00004 /*    non-exclusive license for use of this work by or on behalf      */
00005 /*    of the U.S. Government.  Export of this program may require     */
00006 /*    a license from the United States Government.                    */
00007 /*--------------------------------------------------------------------*/
00008 
00009 #ifndef _fei_LogFile_hpp_
00010 #define _fei_LogFile_hpp_
00011 
00012 #include "fei_iosfwd.hpp"
00013 
00014 namespace fei {
00015 
00019 class LogFile {
00020  public:
00022   virtual ~LogFile();
00023 
00035   void openOutputStream(const char* path=NULL,
00036                         int nprocs=1,
00037                         int localproc=0);
00038 
00040   FEI_OSTREAM* getOutputStream();
00041 
00044   void closeOutputStream();
00045 
00050   static LogFile& getLogFile();
00051 
00052  private:
00054   LogFile();
00055 
00056   FEI_OSTREAM* output_stream_;
00057   unsigned counter_;
00058 }; //class LogFile
00059 }//namespace fei
00060 #endif

Generated on Wed May 12 21:30:41 2010 for FEI by  doxygen 1.4.7