FEI Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
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{
21}
22
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
50{
51 return(logEqns_.find(eqn) != logEqns_.end());
52}
53
54std::set<int>& fei::Logger::getLogIDs()
55{
56 return(logIDs_);
57}
58
60{
61 return(logEqns_);
62}
63
FEI_OSTREAM * getOutputStream()
static LogFile & getLogFile()
bool isLogID(int ID)
FEI_OSTREAM * output_stream_
bool isLogEqn(int eqn)
void addLogEqn(int eqn)
void addLogID(int ID)
std::set< int > & getLogIDs()
std::set< int > & getLogEqns()
virtual ~Logger()
void setOutputLevel(OutputLevel olevel)
OutputLevel
Definition fei_fwd.hpp:81
@ NONE
Definition fei_fwd.hpp:87