FEI Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fei_Logger.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_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:
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 
bool isLogEqn(int eqn)
Definition: fei_Logger.cpp:49
void addLogID(int ID)
Definition: fei_Logger.cpp:34
std::set< int > & getLogIDs()
Definition: fei_Logger.cpp:54
Logger & operator=(const Logger &src)
std::set< int > & getLogEqns()
Definition: fei_Logger.cpp:59
std::set< int > logIDs_
Definition: fei_Logger.hpp:46
#define FEI_OSTREAM
Definition: fei_iosfwd.hpp:24
void setOutputLevel(OutputLevel olevel)
Definition: fei_Logger.cpp:27
OutputLevel
Definition: fei_fwd.hpp:81
void addLogEqn(int eqn)
Definition: fei_Logger.cpp:39
OutputLevel output_level_
Definition: fei_Logger.hpp:42
bool isLogID(int ID)
Definition: fei_Logger.cpp:44
std::set< int > logEqns_
Definition: fei_Logger.hpp:47
FEI_OSTREAM * output_stream_
Definition: fei_Logger.hpp:44
virtual ~Logger()
Definition: fei_Logger.cpp:23