FEI Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
fei::LogManager Class Reference

#include <fei_LogManager.hpp>

Public Member Functions

virtual ~LogManager ()
 
OutputLevel getOutputLevel ()
 
void setOutputLevel (OutputLevel olevel)
 
void setOutputLevel (const char *olevel)
 
void setOutputPath (const std::string &opath)
 
const std::string & getOutputPath ()
 
void setNumProcs (int nprocs, int localproc)
 

Static Public Member Functions

static LogManagergetLogManager ()
 

Private Member Functions

 LogManager ()
 

Private Attributes

OutputLevel output_level_
 
std::string output_path_
 
int numProcs_
 
int localProc_
 

Detailed Description

Singleton class to manage attributes controlling the type and amount of data that should be written to the fei log file.

Definition at line 22 of file fei_LogManager.hpp.

Constructor & Destructor Documentation

fei::LogManager::~LogManager ( )
virtual

destructor

Definition at line 20 of file fei_LogManager.cpp.

fei::LogManager::LogManager ( )
private

constructor

Definition at line 14 of file fei_LogManager.cpp.

Member Function Documentation

fei::LogManager & fei::LogManager::getLogManager ( )
static

Accessor for the one-and-only instance of LogManager. Constructs a LogManager instance on the first call, returns that same instance on the first and all subsequent calls.

Definition at line 24 of file fei_LogManager.cpp.

Referenced by fei::Factory::Factory(), snl_fei::LinearSystem_General::loadComplete(), fei::Factory::parameters(), fei::Matrix_core::parameters(), fei::VectorSpace::setLocalEqnNumbers(), fei::MatrixGraph_Impl2::setParameters(), fei::VectorSpace::setParameters(), and fei::Factory::~Factory().

fei::OutputLevel fei::LogManager::getOutputLevel ( )

Query output-level. Result is an enumeration. The enumeration is defined in fei_fwd.hpp.

Definition at line 30 of file fei_LogManager.cpp.

void fei::LogManager::setOutputLevel ( fei::OutputLevel  olevel)
void fei::LogManager::setOutputLevel ( const char *  olevel)

Set output-level, using a string. Valid values are strings that match the names of the enumeration values. e.g., "MATRIX_FILES", etc.

Definition at line 53 of file fei_LogManager.cpp.

References fei::utils::string_to_output_level().

void fei::LogManager::setOutputPath ( const std::string &  opath)

Specify path where debug-log files should be written.

Definition at line 58 of file fei_LogManager.cpp.

Referenced by fei::Factory::parameters().

const std::string & fei::LogManager::getOutputPath ( )

Query for string specifying path to where debug-log files should be written.

Definition at line 63 of file fei_LogManager.cpp.

Referenced by snl_fei::LinearSystem_General::loadComplete(), and fei::VectorSpace::setLocalEqnNumbers().

void fei::LogManager::setNumProcs ( int  nprocs,
int  localproc 
)

Set numProcs and localProc (which will be used in the log-file-name).

Definition at line 68 of file fei_LogManager.cpp.

Referenced by fei::Factory::Factory().

Member Data Documentation

OutputLevel fei::LogManager::output_level_
private

Definition at line 61 of file fei_LogManager.hpp.

std::string fei::LogManager::output_path_
private

Definition at line 62 of file fei_LogManager.hpp.

int fei::LogManager::numProcs_
private

Definition at line 63 of file fei_LogManager.hpp.

int fei::LogManager::localProc_
private

Definition at line 64 of file fei_LogManager.hpp.


The documentation for this class was generated from the following files: