Livox SDK API  V2.2.0
spdlog::details::os Namespace Reference

Functions

spdlog::log_clock::time_point now () noexcept
 
std::tm localtime (const std::time_t &time_tt) noexcept
 
std::tm localtime () noexcept
 
std::tm gmtime (const std::time_t &time_tt) noexcept
 
std::tm gmtime () noexcept
 
void prevent_child_fd (FILE *f)
 
bool fopen_s (FILE **fp, const filename_t &filename, const filename_t &mode)
 
int remove (const filename_t &filename) noexcept
 
int rename (const filename_t &filename1, const filename_t &filename2) noexcept
 
bool file_exists (const filename_t &filename) noexcept
 
size_t filesize (FILE *f)
 
int utc_minutes_offset (const std::tm &tm=details::os::localtime())
 
size_t _thread_id () noexcept
 
size_t thread_id () noexcept
 
void sleep_for_millis (int milliseconds) noexcept
 
std::string filename_to_str (const filename_t &filename)
 
int pid ()
 
bool is_color_terminal () noexcept
 
bool in_terminal (FILE *file) noexcept
 

Variables

static constexpr const char * default_eol = "\n"
 
static constexpr const char folder_sep = '/'
 

Function Documentation

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

Definition at line 316 of file os.h.

bool spdlog::details::os::file_exists ( const filename_t filename)
inlinenoexcept

Definition at line 188 of file os.h.

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

Definition at line 370 of file os.h.

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

Definition at line 204 of file os.h.

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

Definition at line 148 of file os.h.

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

Definition at line 92 of file os.h.

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

Definition at line 105 of file os.h.

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

Definition at line 410 of file os.h.

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

Definition at line 388 of file os.h.

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

Definition at line 73 of file os.h.

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

Definition at line 86 of file os.h.

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

Definition at line 60 of file os.h.

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

Definition at line 376 of file os.h.

void spdlog::details::os::prevent_child_fd ( FILE *  f)
inline

Definition at line 129 of file os.h.

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

Definition at line 169 of file os.h.

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

Definition at line 178 of file os.h.

void spdlog::details::os::sleep_for_millis ( int  milliseconds)
inlinenoexcept

Definition at line 351 of file os.h.

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

Definition at line 339 of file os.h.

int spdlog::details::os::utc_minutes_offset ( const std::tm &  tm = details::os::localtime())
inline

Definition at line 249 of file os.h.

Variable Documentation

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

Definition at line 120 of file os.h.

constexpr const char spdlog::details::os::folder_sep = '/'
static

Definition at line 126 of file os.h.