25 GRTBase::GRTBase(
void):classType(
""),debugLog(
"[DEBUG]"),errorLog(
"[ERROR]"),trainingLog(
"[TRAINING]"),testingLog(
"[TESTING]"),warningLog(
"[WARNING]"){
35 errorLog <<
"copyBaseVariables(const GRTBase *base) - base pointer is NULL!" << std::endl;
39 this->classType = base->classType;
40 this->debugLog = base->debugLog;
41 this->errorLog = base->errorLog;
42 this->infoLog = base->infoLog;
43 this->trainingLog = base->trainingLog;
44 this->testingLog = base->testingLog;
45 this->warningLog = base->warningLog;
51 return warningLog.getLastMessage();
55 return errorLog.getLastMessage();
59 return infoLog.getLastMessage();
63 std::string version = GRT_VERSION;
64 if( returnRevision ) version +=
" revision: " +
getGRTRevison();
85 infoLog.setEnableInstanceLogging( loggingEnabled );
90 warningLog.setEnableInstanceLogging( loggingEnabled );
95 errorLog.setEnableInstanceLogging( loggingEnabled );
GRTBase * getGRTBasePointer()
static std::string getGRTRevison()
bool setErrorLoggingEnabled(const bool loggingEnabled)
std::string getLastErrorMessage() const
std::string getLastWarningMessage() const
std::string getLastInfoMessage() const
bool setInfoLoggingEnabled(const bool loggingEnabled)
This file contains the GRTBase class. This is the core base class for all the GRT modules...
bool copyGRTBaseVariables(const GRTBase *GRTBase)
bool setWarningLoggingEnabled(const bool loggingEnabled)
static std::string getGRTVersion(bool returnRevision=true)
std::string getClassType() const