FEI  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
fei_Logger.cpp
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 
34 void fei::Logger::addLogID(int ID)
35 {
36  logIDs_.insert(ID);
37 }
38 
39 void fei::Logger::addLogEqn(int eqn)
40 {
41  logEqns_.insert(eqn);
42 }
43 
44 bool fei::Logger::isLogID(int ID)
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 
FEI_OSTREAM * getOutputStream()
Definition: fei_LogFile.cpp:57
void setOutputLevel(OutputLevel olevel)
Definition: fei_Logger.cpp:27
OutputLevel
Definition: fei_fwd.hpp:81
FEI_OSTREAM * output_stream_
Definition: fei_Logger.hpp:44
static LogFile & getLogFile()
Definition: fei_LogFile.cpp:68
virtual ~Logger()
Definition: fei_Logger.cpp:23