From 9a2a524f1e311853d08050be2dcdddc09ac7759a Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:01:29 +0200 Subject: 3.0 --- library/errorLogging.h | 58 +++++++++++++++++++++++++------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'library/errorLogging.h') diff --git a/library/errorLogging.h b/library/errorLogging.h index 5fc5dacd..7b2b32c1 100644 --- a/library/errorLogging.h +++ b/library/errorLogging.h @@ -8,36 +8,36 @@ class Zstring; namespace FreeFileSync { - class ErrorLogging +class ErrorLogging +{ +public: + ErrorLogging() : errorCount(0) {} + + void logError(const wxString& errorMessage); + void logWarning(const wxString& warningMessage); + void logInfo(const wxString& infoMessage); + + int errorsTotal() + { + return errorCount; + } + + const std::vector& getFormattedMessages() { - public: - ErrorLogging() : errorCount(0) {} - - void logError(const wxString& errorMessage); - void logWarning(const wxString& warningMessage); - void logInfo(const wxString& infoMessage); - - int errorsTotal() - { - return errorCount; - } - - const std::vector& getFormattedMessages() - { - return formattedMessages; - } - - size_t messageCount() - { - return formattedMessages.size(); - } - - private: - wxString assembleMessage(const wxString& prefix, const wxString& message); - - std::vector formattedMessages; //list of non-resolved errors and warnings - int errorCount; - }; + return formattedMessages; + } + + size_t messageCount() + { + return formattedMessages.size(); + } + +private: + wxString assembleMessage(const wxString& prefix, const wxString& message); + + std::vector formattedMessages; //list of non-resolved errors and warnings + int errorCount; +}; } #endif // ERRORLOGGING_H_INCLUDED -- cgit