FEI  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
fei_Logger.hpp
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_Logger_hpp_
10 #define _fei_Logger_hpp_
11 
12 #include <fei_fwd.hpp>
13 #include <fei_iosfwd.hpp>
14 #include <set>
15 
16 namespace fei {
19 class Logger {
20  public:
22  Logger();
24  virtual ~Logger();
25 
27  void setOutputLevel(OutputLevel olevel);
28 
29  void addLogID(int ID);
30  void addLogEqn(int eqn);
31 
32  bool isLogID(int ID);
33  bool isLogEqn(int eqn);
34 
35  std::set<int>& getLogIDs();
36  std::set<int>& getLogEqns();
37 
38  protected:
44  FEI_OSTREAM* output_stream_;
45 
46  std::set<int> logIDs_;
47  std::set<int> logEqns_;
48 
49  private:
50  Logger(const Logger& src);
51  Logger& operator=(const Logger& src);
52 };//class Logger
53 }//namespace fei
54 #endif
55 
void setOutputLevel(OutputLevel olevel)
Definition: fei_Logger.cpp:27
OutputLevel
Definition: fei_fwd.hpp:81
OutputLevel output_level_
Definition: fei_Logger.hpp:42
FEI_OSTREAM * output_stream_
Definition: fei_Logger.hpp:44
virtual ~Logger()
Definition: fei_Logger.cpp:23