status.hpp
#ifndef BTLLIB_STATUS_HPP
#define BTLLIB_STATUS_HPP
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <string>
namespace btllib {
constexpr const char* PRINT_COLOR_INFO = "\33[32m";
constexpr const char* PRINT_COLOR_WARNING = "\33[33m";
constexpr const char* PRINT_COLOR_ERROR = "\33[31m";
constexpr const char* PRINT_COLOR_END = "\33[0m";
std::string
get_time();
void
log_info(const std::string& msg);
void
log_warning(const std::string& msg);
void
log_error(const std::string& msg);
void
check_info(bool condition, const std::string& msg);
void
check_warning(bool condition, const std::string& msg);
void
check_error(bool condition, const std::string& msg);
std::string
get_strerror();
void
check_stream(const std::ios& stream, const std::string& name);
} // namespace btllib
#endif
btllib
Definition: bloom_filter.hpp:16
btllib::log_warning
void log_warning(const std::string &msg)
btllib::check_error
void check_error(bool condition, const std::string &msg)
btllib::check_warning
void check_warning(bool condition, const std::string &msg)
btllib::check_stream
void check_stream(const std::ios &stream, const std::string &name)
btllib::log_info
void log_info(const std::string &msg)
btllib::log_error
void log_error(const std::string &msg)
btllib::check_info
void check_info(bool condition, const std::string &msg)