spdlog
Loading...
Searching...
No Matches
Functions | Variables
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 (filename_t path)
 
SPDLOG_INLINE filename_t dir_name (filename_t path)
 
std::string SPDLOG_INLINE getenv (const char *field)
 

Variables

static SPDLOG_CONSTEXPR const chardefault_eol = SPDLOG_EOL
 
static SPDLOG_CONSTEXPR const char folder_seps [] = SPDLOG_FOLDER_SEPS
 
static SPDLOG_CONSTEXPR const filename_t::value_type folder_seps_filename [] = SPDLOG_FILENAME_T(SPDLOG_FOLDER_SEPS)
 

Function Documentation

◆ _thread_id()

SPDLOG_API size_t spdlog::details::os::_thread_id ( )

Definition at line 330 of file os-inl.h.

◆ create_dir()

SPDLOG_API bool spdlog::details::os::create_dir ( filename_t  path)

Definition at line 534 of file os-inl.h.

◆ dir_name()

SPDLOG_API filename_t spdlog::details::os::dir_name ( filename_t  path)

Definition at line 573 of file os-inl.h.

◆ filename_to_str()

SPDLOG_API std::string spdlog::details::os::filename_to_str ( const filename_t filename)

Definition at line 387 of file os-inl.h.

◆ filesize()

SPDLOG_API size_t spdlog::details::os::filesize ( FILE *  f)

Definition at line 209 of file os-inl.h.

◆ fopen_s()

SPDLOG_API bool spdlog::details::os::fopen_s ( FILE **  fp,
const filename_t filename,
const filename_t mode 
)

Definition at line 123 of file os-inl.h.

◆ getenv()

SPDLOG_API std::string spdlog::details::os::getenv ( const char field)

Definition at line 579 of file os-inl.h.

◆ gmtime() [1/2]

SPDLOG_API std::tm spdlog::details::os::gmtime ( )

Definition at line 116 of file os-inl.h.

◆ gmtime() [2/2]

SPDLOG_API std::tm spdlog::details::os::gmtime ( const std::time_t time_tt)

Definition at line 103 of file os-inl.h.

◆ in_terminal()

SPDLOG_API bool spdlog::details::os::in_terminal ( FILE *  file)

Definition at line 436 of file os-inl.h.

◆ is_color_terminal()

SPDLOG_API bool spdlog::details::os::is_color_terminal ( )

Definition at line 405 of file os-inl.h.

◆ localtime() [1/2]

SPDLOG_API std::tm spdlog::details::os::localtime ( )

Definition at line 97 of file os-inl.h.

◆ localtime() [2/2]

SPDLOG_API std::tm spdlog::details::os::localtime ( const std::time_t time_tt)

Definition at line 84 of file os-inl.h.

◆ mkdir_()

static SPDLOG_INLINE bool spdlog::details::os::mkdir_ ( const filename_t path)
static

Definition at line 519 of file os-inl.h.

◆ now()

SPDLOG_API spdlog::log_clock::time_point spdlog::details::os::now ( )

Definition at line 71 of file os-inl.h.

◆ path_exists()

SPDLOG_API bool spdlog::details::os::path_exists ( const filename_t filename)

Definition at line 187 of file os-inl.h.

◆ pid()

SPDLOG_API int spdlog::details::os::pid ( )

Definition at line 393 of file os-inl.h.

◆ remove()

SPDLOG_API int spdlog::details::os::remove ( const filename_t filename)

Definition at line 163 of file os-inl.h.

◆ remove_if_exists()

SPDLOG_API int spdlog::details::os::remove_if_exists ( const filename_t filename)

Definition at line 172 of file os-inl.h.

◆ rename()

SPDLOG_API int spdlog::details::os::rename ( const filename_t filename1,
const filename_t filename2 
)

Definition at line 177 of file os-inl.h.

◆ sleep_for_millis()

SPDLOG_API void spdlog::details::os::sleep_for_millis ( unsigned int  milliseconds)

Definition at line 369 of file os-inl.h.

◆ thread_id()

SPDLOG_API size_t spdlog::details::os::thread_id ( )

Definition at line 357 of file os-inl.h.

◆ utc_minutes_offset()

SPDLOG_API int spdlog::details::os::utc_minutes_offset ( const std::tm tm)

Definition at line 263 of file os-inl.h.

Variable Documentation

◆ default_eol

SPDLOG_CONSTEXPR const char* spdlog::details::os::default_eol = SPDLOG_EOL
static

Definition at line 32 of file details/os.h.

◆ folder_seps

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

Definition at line 43 of file details/os.h.

◆ folder_seps_filename

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

Definition at line 44 of file details/os.h.