Agora  1.2.0
Agora project
spdlog::details::os Namespace Reference

Functions

SPDLOG_INLINE spdlog::log_clock::time_point now () SPDLOG_NOEXCEPT
 
SPDLOG_INLINE std::tm localtime (const std::time_t &time_tt) SPDLOG_NOEXCEPT
 
SPDLOG_INLINE std::tm localtime () SPDLOG_NOEXCEPT
 
SPDLOG_INLINE std::tm gmtime (const std::time_t &time_tt) SPDLOG_NOEXCEPT
 
SPDLOG_INLINE std::tm gmtime () SPDLOG_NOEXCEPT
 
SPDLOG_INLINE bool fopen_s (FILE **fp, const filename_t &filename, const filename_t &mode)
 
SPDLOG_INLINE int remove (const filename_t &filename) SPDLOG_NOEXCEPT
 
SPDLOG_INLINE int remove_if_exists (const filename_t &filename) SPDLOG_NOEXCEPT
 
SPDLOG_INLINE int rename (const filename_t &filename1, const filename_t &filename2) SPDLOG_NOEXCEPT
 
SPDLOG_INLINE bool path_exists (const filename_t &filename) SPDLOG_NOEXCEPT
 
SPDLOG_INLINE size_t filesize (FILE *f)
 
SPDLOG_INLINE int utc_minutes_offset (const std::tm &tm)
 
SPDLOG_INLINE size_t _thread_id () SPDLOG_NOEXCEPT
 
SPDLOG_INLINE size_t thread_id () SPDLOG_NOEXCEPT
 
SPDLOG_INLINE void sleep_for_millis (unsigned int milliseconds) SPDLOG_NOEXCEPT
 
SPDLOG_INLINE std::string filename_to_str (const filename_t &filename)
 
SPDLOG_INLINE int pid () SPDLOG_NOEXCEPT
 
SPDLOG_INLINE bool is_color_terminal () SPDLOG_NOEXCEPT
 
SPDLOG_INLINE bool in_terminal (FILE *file) SPDLOG_NOEXCEPT
 
static SPDLOG_INLINE bool mkdir_ (const filename_t &path)
 
SPDLOG_INLINE bool create_dir (const filename_t &path)
 
SPDLOG_INLINE filename_t dir_name (const filename_t &path)
 
std::string SPDLOG_INLINE getenv (const char *field)
 

Variables

static const SPDLOG_CONSTEXPR char * default_eol = "\n"
 
static const SPDLOG_CONSTEXPR char folder_seps [] = "/"
 
static const SPDLOG_CONSTEXPR filename_t::value_type folder_seps_filename [] = SPDLOG_FILENAME_T( "/" )
 

Function Documentation

◆ _thread_id()

SPDLOG_API size_t spdlog::details::os::_thread_id ( )
Here is the caller graph for this function:

◆ create_dir()

SPDLOG_API bool spdlog::details::os::create_dir ( const filename_t path)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dir_name()

SPDLOG_API filename_t spdlog::details::os::dir_name ( const filename_t path)
Here is the caller graph for this function:

◆ filename_to_str()

SPDLOG_API std::string spdlog::details::os::filename_to_str ( const filename_t filename)
Here is the caller graph for this function:

◆ filesize()

SPDLOG_API size_t spdlog::details::os::filesize ( FILE *  f)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fopen_s()

SPDLOG_API bool spdlog::details::os::fopen_s ( FILE **  fp,
const filename_t filename,
const filename_t mode 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getenv()

SPDLOG_API std::string spdlog::details::os::getenv ( const char *  field)
Here is the caller graph for this function:

◆ gmtime() [1/2]

SPDLOG_API std::tm spdlog::details::os::gmtime ( )
Here is the call graph for this function:

◆ gmtime() [2/2]

SPDLOG_API std::tm spdlog::details::os::gmtime ( const std::time_t &  time_tt)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ in_terminal()

SPDLOG_API bool spdlog::details::os::in_terminal ( FILE *  file)
Here is the caller graph for this function:

◆ is_color_terminal()

SPDLOG_API bool spdlog::details::os::is_color_terminal ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ localtime() [1/2]

SPDLOG_API std::tm spdlog::details::os::localtime ( )
Here is the call graph for this function:

◆ localtime() [2/2]

SPDLOG_API std::tm spdlog::details::os::localtime ( const std::time_t &  time_tt)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mkdir_()

static SPDLOG_INLINE bool spdlog::details::os::mkdir_ ( const filename_t path)
static
Here is the caller graph for this function:

◆ now()

SPDLOG_API spdlog::log_clock::time_point spdlog::details::os::now ( )
Here is the caller graph for this function:

◆ path_exists()

SPDLOG_API bool spdlog::details::os::path_exists ( const filename_t filename)
Here is the caller graph for this function:

◆ pid()

SPDLOG_API int spdlog::details::os::pid ( )
Here is the caller graph for this function:

◆ remove()

SPDLOG_API int spdlog::details::os::remove ( const filename_t filename)
Here is the caller graph for this function:

◆ remove_if_exists()

SPDLOG_API int spdlog::details::os::remove_if_exists ( const filename_t filename)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rename()

SPDLOG_API int spdlog::details::os::rename ( const filename_t filename1,
const filename_t filename2 
)
Here is the caller graph for this function:

◆ sleep_for_millis()

SPDLOG_API void spdlog::details::os::sleep_for_millis ( unsigned int  milliseconds)
Here is the caller graph for this function:

◆ thread_id()

SPDLOG_API size_t spdlog::details::os::thread_id ( )
Here is the call graph for this function:

◆ utc_minutes_offset()

SPDLOG_API int spdlog::details::os::utc_minutes_offset ( const std::tm &  tm)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ default_eol

const SPDLOG_CONSTEXPR char* spdlog::details::os::default_eol = "\n"
static

◆ folder_seps

const SPDLOG_CONSTEXPR char spdlog::details::os::folder_seps[] = "/"
static

◆ folder_seps_filename

const SPDLOG_CONSTEXPR filename_t::value_type spdlog::details::os::folder_seps_filename[] = SPDLOG_FILENAME_T( "/" )
static