added logger
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user