FEI Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fei_LogManager.hpp
Go to the documentation of this file.
1 /*--------------------------------------------------------------------*/
2 /* Copyright 2005 Sandia Corporation. */
3 /* Under the terms of Contract DE-AC04-94AL85000, there is a */
4 /* non-exclusive license for use of this work by or on behalf */
5 /* of the U.S. Government. Export of this program may require */
6 /* a license from the United States Government. */
7 /*--------------------------------------------------------------------*/
8 
9 #ifndef _fei_LogManager_hpp_
10 #define _fei_LogManager_hpp_
11 
12 #include <fei_fwd.hpp>
13 
14 #include <string>
15 #include <vector>
16 
17 namespace fei {
18 
22 class LogManager {
23  public:
25  virtual ~LogManager();
26 
31  static LogManager& getLogManager();
32 
36 
39  void setOutputLevel(OutputLevel olevel);
40 
44  void setOutputLevel(const char* olevel);
45 
47  void setOutputPath(const std::string& opath);
48 
51  const std::string& getOutputPath();
52 
55  void setNumProcs(int nprocs, int localproc);
56 
57  private:
59  LogManager();
60 
62  std::string output_path_;
63  int numProcs_;
65 }; //class LogManager
66 }//namespace fei
67 #endif
68 
const std::string & getOutputPath()
void setNumProcs(int nprocs, int localproc)
std::string output_path_
OutputLevel getOutputLevel()
virtual ~LogManager()
OutputLevel
Definition: fei_fwd.hpp:81
void setOutputLevel(OutputLevel olevel)
static LogManager & getLogManager()
void setOutputPath(const std::string &opath)
OutputLevel output_level_