21 #ifndef GRT_TESTING_LOG_HEADER
22 #define GRT_TESTING_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 TestingLog(std::string proceedingText =
""){ setProceedingText(proceedingText); Log::loggingEnabledPtr = &testingLoggingEnabled; }
59 this->proceedingText = rhs.proceedingText;
60 this->writeProceedingText = rhs.writeProceedingText;
61 this->lastMessage = rhs.lastMessage;
62 this->loggingEnabledPtr = &testingLoggingEnabled;
63 this->writeProceedingTextPtr = &writeProceedingText;
64 this->lastMessagePtr = &lastMessage;
70 virtual bool loggingEnabled()
const{
return testingLoggingEnabled; }
73 static bool enableLogging(
bool loggingEnabled);
80 virtual void triggerCallback(
const std::string &message )
const{
86 static bool testingLoggingEnabled;
91 #endif //GRT_TESTING_LOG_HEADER