diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:01:29 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:01:29 +0200 |
commit | 9a2a524f1e311853d08050be2dcdddc09ac7759a (patch) | |
tree | d8e4a24169fce88c2d89931d58514889a0bcb0ea /library/errorLogging.h | |
parent | 2.3 (diff) | |
download | FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.tar.gz FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.tar.bz2 FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.zip |
3.0
Diffstat (limited to 'library/errorLogging.h')
-rw-r--r-- | library/errorLogging.h | 58 |
1 files changed, 29 insertions, 29 deletions
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<wxString>& 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<wxString>& getFormattedMessages() - { - return formattedMessages; - } - - size_t messageCount() - { - return formattedMessages.size(); - } - - private: - wxString assembleMessage(const wxString& prefix, const wxString& message); - - std::vector<wxString> 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<wxString> formattedMessages; //list of non-resolved errors and warnings + int errorCount; +}; } #endif // ERRORLOGGING_H_INCLUDED |