21 #ifndef GRT_TRAINING_LOG_HEADER
22 #define GRT_TRAINING_LOG_HEADER
25 #include "ObserverManager.h"
32 this->proceedingText = proceedingText;
33 this->message = message;
39 std::string getProceedingText()
const {
40 return proceedingText;
43 std::string getMessage()
const {
47 std::string proceedingText;
53 TrainingLog(std::string proceedingText =
""){ setProceedingText(proceedingText); Log::loggingEnabledPtr = &trainingLoggingEnabled; }
59 this->proceedingText = rhs.proceedingText;
60 this->writeProceedingText = rhs.writeProceedingText;
61 this->lastMessage = rhs.lastMessage;
62 this->loggingEnabledPtr = &trainingLoggingEnabled;
63 this->writeProceedingTextPtr = &writeProceedingText;
64 this->lastMessagePtr = &lastMessage;
70 virtual bool loggingEnabled()
const{
return trainingLoggingEnabled; }
73 static bool enableLogging(
bool loggingEnabled);
80 virtual void triggerCallback(
const std::string &message )
const{
85 static bool trainingLoggingEnabled;
91 #endif //GRT_TRAINING_LOG_HEADER