consolidate all repos to one for archive

This commit is contained in:
2025-01-28 13:46:42 +01:00
commit a6610fbc7a
5350 changed files with 2705721 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
//
// Created by Nik on 20/05/2022.
//
#ifndef NALOGA1102_LOG_H
#define NALOGA1102_LOG_H
#include <string>
#include <fstream>
enum LogType{
DEBUG, INFO, ERROR, WARNING
};
class Log {
private:
std::ofstream file;
std::string fileName = "log.txt";
public:
Log(LogType type);
~Log();
std::string GetStringLogType(LogType type);
template<typename T>
Log& operator<<(const T &msg){
file << msg;
return *this;
};
};
#endif //NALOGA1102_LOG_H