Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
spdlog::details::os Namespace Reference

Functions

std::string errno_str (int err_num)
 
spdlog::log_clock::time_point now ()
 
std::tm localtime (const std::time_t &time_tt)
 
std::tm localtime ()
 
std::tm gmtime (const std::time_t &time_tt)
 
std::tm gmtime ()
 
bool operator== (const std::tm &tm1, const std::tm &tm2)
 
bool operator!= (const std::tm &tm1, const std::tm &tm2)
 
void prevent_child_fd (FILE *f)
 
int fopen_s (FILE **fp, const filename_t &filename, const filename_t &mode)
 
int remove (const filename_t &filename)
 
int rename (const filename_t &filename1, const filename_t &filename2)
 
bool file_exists (const filename_t &filename)
 
size_t filesize (FILE *f)
 
int utc_minutes_offset (const std::tm &tm=details::os::localtime())
 
size_t _thread_id ()
 
size_t thread_id ()
 
std::string filename_to_str (const filename_t &filename)
 
std::string errno_to_string (char[256], char *res)
 
std::string errno_to_string (char buf[256], int res)
 
int pid ()
 
bool is_color_terminal ()
 
bool in_terminal (FILE *file)
 

Variables

static SPDLOG_CONSTEXPR const char * eol = SPDLOG_EOL
 
static SPDLOG_CONSTEXPR int eol_size = sizeof(SPDLOG_EOL) - 1
 
static SPDLOG_CONSTEXPR const char folder_sep = '/'
 

Function Documentation

◆ _thread_id()

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

Definition at line 330 of file os.h.

+ Here is the caller graph for this function:

◆ errno_str()

std::string spdlog::details::os::errno_str ( int err_num)
inline

Definition at line 400 of file os.h.

◆ errno_to_string() [1/2]

std::string spdlog::details::os::errno_to_string ( char buf[256],
int res )
inline

Definition at line 387 of file os.h.

◆ errno_to_string() [2/2]

std::string spdlog::details::os::errno_to_string ( char [256],
char * res )
inline

Definition at line 382 of file os.h.

◆ file_exists()

bool spdlog::details::os::file_exists ( const filename_t & filename)
inline

Definition at line 211 of file os.h.

◆ filename_to_str()

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

Definition at line 376 of file os.h.

◆ filesize()

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

Definition at line 230 of file os.h.

◆ fopen_s()

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

Definition at line 171 of file os.h.

◆ gmtime() [1/2]

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

Definition at line 113 of file os.h.

+ Here is the call graph for this function:

◆ gmtime() [2/2]

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

Definition at line 100 of file os.h.

+ Here is the caller graph for this function:

◆ in_terminal()

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

Definition at line 468 of file os.h.

◆ is_color_terminal()

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

Definition at line 439 of file os.h.

◆ localtime() [1/2]

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

Definition at line 93 of file os.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ localtime() [2/2]

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

Definition at line 80 of file os.h.

+ Here is the caller graph for this function:

◆ now()

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

Definition at line 64 of file os.h.

+ Here is the caller graph for this function:

◆ operator!=()

bool spdlog::details::os::operator!= ( const std::tm & tm1,
const std::tm & tm2 )
inline

Definition at line 129 of file os.h.

+ Here is the call graph for this function:

◆ operator==()

bool spdlog::details::os::operator== ( const std::tm & tm1,
const std::tm & tm2 )
inline

Definition at line 118 of file os.h.

+ Here is the caller graph for this function:

◆ pid()

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

Definition at line 425 of file os.h.

+ Here is the caller graph for this function:

◆ prevent_child_fd()

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

Definition at line 156 of file os.h.

◆ remove()

int spdlog::details::os::remove ( const filename_t & filename)
inline

Definition at line 191 of file os.h.

◆ rename()

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

Definition at line 200 of file os.h.

◆ thread_id()

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

Definition at line 353 of file os.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ utc_minutes_offset()

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

Definition at line 267 of file os.h.

+ Here is the caller graph for this function:

Variable Documentation

◆ eol

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

Definition at line 143 of file os.h.

◆ eol_size

SPDLOG_CONSTEXPR int spdlog::details::os::eol_size = sizeof(SPDLOG_EOL) - 1
static

Definition at line 144 of file os.h.

◆ folder_sep

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

Definition at line 152 of file os.h.