IOSS 2.0
Loading...
Searching...
No Matches
Iocatalyst::CatalystLogging Class Reference

#include <Iocatalyst_CatalystLogging.h>

Collaboration diagram for Iocatalyst::CatalystLogging:
[legend]

Public Member Functions

 CatalystLogging ()
 
bool isCatalystLoggingON ()
 
std::string getLogFileName ()
 
std::string getLogOutputDirectoryPath ()
 
std::string getDefaultLogOutputDirectoryPath ()
 
void setProperties (const Ioss::PropertyManager *properties)
 
std::vector< std::string > getLogFileHeaders ()
 
std::vector< std::string > writeToLogFile ()
 
std::vector< std::vector< std::string > > readLogFile ()
 
std::string getLogFilePath ()
 
bool isCatalystLoggingProp (std::string &propName)
 
std::string getHeaderNameFromPropName (std::string &propName)
 
std::string getPropNameFromHeaderName (std::string &headerName)
 
bool isReservedPropName (std::string &propName)
 
bool isSupportedPropType (std::string &propName)
 

Static Public Member Functions

static std::string getDefaultLogFileName ()
 
static std::vector< std::vector< std::string > > readLogFile (const std::string &logFilePath)
 
static char getDelimeter ()
 

Private Member Functions

void initializeDefaults ()
 
void writeVectorWithDelimeter (std::fstream &file, const std::vector< std::string > &string_vector, char delimeter)
 
bool isLogFileEmpty ()
 
std::vector< std::string > getLogOutputFromProps (std::vector< std::string > &headers)
 

Static Private Member Functions

static std::vector< std::string > splitStringWithDelimeter (const std::string &input, char delimeter)
 

Private Attributes

bool catalystLoggingEnabled
 
std::string logFileName
 
std::string logOutputDirectoryPath
 
const Ioss::PropertyManagerproperties
 
std::string logPrefix = "CATALYST_LOGGING_"
 
std::string enabledProp = logPrefix + "ENABLED"
 
std::string fileNameProp = logPrefix + "FILE_NAME"
 
std::string directoryPathProp = logPrefix + "OUTPUT_DIRECTORY_PATH"
 

Constructor & Destructor Documentation

◆ CatalystLogging()

Iocatalyst::CatalystLogging::CatalystLogging ( )

Member Function Documentation

◆ getDefaultLogFileName()

static std::string Iocatalyst::CatalystLogging::getDefaultLogFileName ( )
inlinestatic

◆ getDefaultLogOutputDirectoryPath()

std::string Iocatalyst::CatalystLogging::getDefaultLogOutputDirectoryPath ( )
inline

◆ getDelimeter()

static char Iocatalyst::CatalystLogging::getDelimeter ( )
inlinestatic

◆ getHeaderNameFromPropName()

std::string Iocatalyst::CatalystLogging::getHeaderNameFromPropName ( std::string & propName)
inline

◆ getLogFileHeaders()

std::vector< std::string > Iocatalyst::CatalystLogging::getLogFileHeaders ( )

◆ getLogFileName()

std::string Iocatalyst::CatalystLogging::getLogFileName ( )
inline

◆ getLogFilePath()

std::string Iocatalyst::CatalystLogging::getLogFilePath ( )
inline

◆ getLogOutputDirectoryPath()

std::string Iocatalyst::CatalystLogging::getLogOutputDirectoryPath ( )
inline

◆ getLogOutputFromProps()

std::vector< std::string > Iocatalyst::CatalystLogging::getLogOutputFromProps ( std::vector< std::string > & headers)
private

◆ getPropNameFromHeaderName()

std::string Iocatalyst::CatalystLogging::getPropNameFromHeaderName ( std::string & headerName)
inline

◆ initializeDefaults()

void Iocatalyst::CatalystLogging::initializeDefaults ( )
private

◆ isCatalystLoggingON()

bool Iocatalyst::CatalystLogging::isCatalystLoggingON ( )
inline

◆ isCatalystLoggingProp()

bool Iocatalyst::CatalystLogging::isCatalystLoggingProp ( std::string & propName)
inline

◆ isLogFileEmpty()

bool Iocatalyst::CatalystLogging::isLogFileEmpty ( )
private

◆ isReservedPropName()

bool Iocatalyst::CatalystLogging::isReservedPropName ( std::string & propName)
inline

◆ isSupportedPropType()

bool Iocatalyst::CatalystLogging::isSupportedPropType ( std::string & propName)
inline

◆ readLogFile() [1/2]

std::vector< std::vector< std::string > > Iocatalyst::CatalystLogging::readLogFile ( )

◆ readLogFile() [2/2]

std::vector< std::vector< std::string > > Iocatalyst::CatalystLogging::readLogFile ( const std::string & logFilePath)
static

◆ setProperties()

void Iocatalyst::CatalystLogging::setProperties ( const Ioss::PropertyManager * properties)

◆ splitStringWithDelimeter()

std::vector< std::string > Iocatalyst::CatalystLogging::splitStringWithDelimeter ( const std::string & input,
char delimeter )
staticprivate

◆ writeToLogFile()

std::vector< std::string > Iocatalyst::CatalystLogging::writeToLogFile ( )

◆ writeVectorWithDelimeter()

void Iocatalyst::CatalystLogging::writeVectorWithDelimeter ( std::fstream & file,
const std::vector< std::string > & string_vector,
char delimeter )
private

Member Data Documentation

◆ catalystLoggingEnabled

bool Iocatalyst::CatalystLogging::catalystLoggingEnabled
private

◆ directoryPathProp

std::string Iocatalyst::CatalystLogging::directoryPathProp = logPrefix + "OUTPUT_DIRECTORY_PATH"
private

◆ enabledProp

std::string Iocatalyst::CatalystLogging::enabledProp = logPrefix + "ENABLED"
private

◆ fileNameProp

std::string Iocatalyst::CatalystLogging::fileNameProp = logPrefix + "FILE_NAME"
private

◆ logFileName

std::string Iocatalyst::CatalystLogging::logFileName
private

◆ logOutputDirectoryPath

std::string Iocatalyst::CatalystLogging::logOutputDirectoryPath
private

◆ logPrefix

std::string Iocatalyst::CatalystLogging::logPrefix = "CATALYST_LOGGING_"
private

◆ properties

const Ioss::PropertyManager* Iocatalyst::CatalystLogging::properties
private

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