btllib
Loading...
Searching...
No Matches
status.hpp
1
4#ifndef BTLLIB_STATUS_HPP
5#define BTLLIB_STATUS_HPP
6
7#include <cstdlib>
8#include <cstring>
9#include <ctime>
10#include <iostream>
11#include <string>
12
13namespace btllib {
14
15constexpr const char* PRINT_COLOR_INFO = "\33[32m";
16constexpr const char* PRINT_COLOR_WARNING = "\33[33m";
17constexpr const char* PRINT_COLOR_ERROR = "\33[31m";
18constexpr const char* PRINT_COLOR_END = "\33[0m";
19
23std::string
25
31void
32log_info(const std::string& msg);
33
39void
40log_warning(const std::string& msg);
41
47void
48log_error(const std::string& msg);
49
56void
57check_info(bool condition, const std::string& msg);
58
65void
66check_warning(bool condition, const std::string& msg);
67
76void
77check_error(bool condition, const std::string& msg);
78
79std::string
80get_strerror();
81
89void
90check_stream(const std::ios& stream, const std::string& name);
91
98void
99check_file_accessibility(const std::string& filepath);
100
101} // namespace btllib
102
103#endif
Definition aahash.hpp:12
void log_warning(const std::string &msg)
void check_error(bool condition, const std::string &msg)
void check_warning(bool condition, const std::string &msg)
std::string get_time()
void check_stream(const std::ios &stream, const std::string &name)
void log_info(const std::string &msg)
void check_file_accessibility(const std::string &filepath)
void log_error(const std::string &msg)
void check_info(bool condition, const std::string &msg)