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.cpp
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 #include <fei_Logger.hpp>
10 #include <fei_LogManager.hpp>
11 #include <fei_LogFile.hpp>
12 
14  : output_level_(NONE),
15  output_stream_(0),
16  logIDs_(),
17  logEqns_()
18 {
20  output_stream_ = log_file.getOutputStream();
21 }
22 
24 {
25 }
26 
28 {
29  output_level_ = olevel;
31  output_stream_ = log_file.getOutputStream();
32 }
33 
35 {
36  logIDs_.insert(ID);
37 }
38 
40 {
41  logEqns_.insert(eqn);
42 }
43 
45 {
46  return(logIDs_.find(ID) != logIDs_.end());
47 }
48 
49 bool fei::Logger::isLogEqn(int eqn)
50 {
51  return(logEqns_.find(eqn) != logEqns_.end());
52 }
53 
54 std::set<int>& fei::Logger::getLogIDs()
55 {
56  return(logIDs_);
57 }
58 
59 std::set<int>& fei::Logger::getLogEqns()
60 {
61  return(logEqns_);
62 }
63 
bool isLogEqn(int eqn)
Definition: fei_Logger.cpp:49
void addLogID(int ID)
Definition: fei_Logger.cpp:34
FEI_OSTREAM * getOutputStream()
Definition: fei_LogFile.cpp:57
std::set< int > & getLogIDs()
Definition: fei_Logger.cpp:54
std::set< int > & getLogEqns()
Definition: fei_Logger.cpp:59
void setOutputLevel(OutputLevel olevel)
Definition: fei_Logger.cpp:27
OutputLevel
Definition: fei_fwd.hpp:81
void addLogEqn(int eqn)
Definition: fei_Logger.cpp:39
bool isLogID(int ID)
Definition: fei_Logger.cpp:44
FEI_OSTREAM * output_stream_
Definition: fei_Logger.hpp:44
static LogFile & getLogFile()
Definition: fei_LogFile.cpp:68
virtual ~Logger()
Definition: fei_Logger.cpp:23