21 #define GRT_DLL_EXPORTS
26 GRTBase::GRTBase(
void):classType(
""),debugLog(
"[DEBUG]"),errorLog(
"[ERROR]"),trainingLog(
"[TRAINING]"),testingLog(
"[TESTING]"),warningLog(
"[WARNING]"){
36 errorLog <<
"copyBaseVariables(const GRTBase *base) - base pointer is NULL!" << std::endl;
40 this->classType = base->classType;
41 this->debugLog = base->debugLog;
42 this->errorLog = base->errorLog;
43 this->infoLog = base->infoLog;
44 this->trainingLog = base->trainingLog;
45 this->testingLog = base->testingLog;
46 this->warningLog = base->warningLog;
52 return warningLog.getLastMessage();
56 return errorLog.getLastMessage();
60 return infoLog.getLastMessage();
64 std::string version = GRT_VERSION;
65 if( returnRevision ) version +=
" revision: " +
getGRTRevison();
86 infoLog.setEnableInstanceLogging( loggingEnabled );
91 warningLog.setEnableInstanceLogging( loggingEnabled );
96 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