diff options
| author | Ján Sučan <sucanjan@fit.cvut.cz> | 2017-05-10 15:13:29 +0200 |
|---|---|---|
| committer | Ján Sučan <sucanjan@fit.cvut.cz> | 2017-05-10 15:13:29 +0200 |
| commit | 02e24f0f533fe904c3a5275c4060c10c38d7c17a (patch) | |
| tree | 19d05c60e3d6a6782c4712de960a8f6705054063 /Logger.hpp | |
Uvodny commit, subory su rovnake ako na CD prilozenom k vytlacenemu texu bakalarskej prace, naviac je pridany len subor LICENCIA
Diffstat (limited to 'Logger.hpp')
| -rwxr-xr-x | Logger.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
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 <iostream> + +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 |
