added logger

This commit is contained in:
2023-11-23 18:04:02 +01:00
parent 1dbe4e6096
commit 72bc6db6b3
18 changed files with 621 additions and 30 deletions
+28
View File
@@ -5,12 +5,40 @@
namespace matador::utils::os {
#ifdef _WIN32
extern char DIR_SEPARATOR;
extern const char* DIR_SEPARATOR_STRING;
#else
extern char DIR_SEPARATOR;
extern const char* DIR_SEPARATOR_STRING;
#endif
std::string error_string(unsigned long error);
std::string getenv(const char* name);
[[maybe_unused]] std::string getenv(const std::string &name);
FILE* fopen(const std::string &path, const char *modes);
FILE* fopen(const char *path, const char *modes);
std::string get_current_dir();
bool mkdir(const std::string &dirname);
bool mkdir(const char *dirname);
bool chdir(const std::string &dirname);
bool chdir(const char *dirname);
bool rmdir(const std::string &dirname);
bool rmdir(const char *dirname);
bool mkpath(const std::string &path);
bool mkpath(const char *path);
bool rmpath(const std::string &path);
bool rmpath(const char *path);
}
#endif //QUERY_OS_HPP