From 02e24f0f533fe904c3a5275c4060c10c38d7c17a Mon Sep 17 00:00:00 2001 From: Ján Sučan Date: Wed, 10 May 2017 15:13:29 +0200 Subject: Uvodny commit, subory su rovnake ako na CD prilozenom k vytlacenemu texu bakalarskej prace, naviac je pridany len subor LICENCIA --- Logger.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 Logger.hpp (limited to 'Logger.hpp') diff --git a/Logger.hpp b/Logger.hpp new file mode 100755 index 0000000..0925b69 --- /dev/null +++ b/Logger.hpp @@ -0,0 +1,23 @@ +#ifndef LOGGER_HPP +#define LOGGER_HPP 1 + +#include + +using std::string; + +#define LOGGER_PROGRESS_UNIT 3 // % + +class CLogger { +private: + static bool mLogInfo; + static int mProgressLastPercent; +public: + static void error(const string & msg, int returnValue); + static void warning(const string & msg); + static void info(const string & msg); + static void progress(uint32_t b, uint32_t n); + static void setLogInfo(bool b); + static string decToHex(int dec); +}; + +#endif -- cgit v1.2.3