FEI Version of the Day
Loading...
Searching...
No Matches
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{
21}
22
26
28{
29 output_level_ = olevel;
31 output_stream_ = log_file.getOutputStream();
32}
33
34void fei::Logger::addLogID(int ID)
35{
36 logIDs_.insert(ID);
37}
38
39void fei::Logger::addLogEqn(int eqn)
40{
41 logEqns_.insert(eqn);
42}
43
44bool fei::Logger::isLogID(int ID)
45{
46 return(logIDs_.find(ID) != logIDs_.end());
47}
48
49bool fei::Logger::isLogEqn(int eqn)
50{
51 return(logEqns_.find(eqn) != logEqns_.end());
52}
53
54std::set<int>& fei::Logger::getLogIDs()
55{
56 return(logIDs_);
57}
58
59std::set<int>& fei::Logger::getLogEqns()
60{
61 return(logEqns_);
62}
63
FEI_OSTREAM * getOutputStream()
static LogFile & getLogFile()
FEI_OSTREAM * output_stream_
virtual ~Logger()
void setOutputLevel(OutputLevel olevel)
OutputLevel
Definition fei_fwd.hpp:81