Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
spdlog::details::file_helper Class Reference

#include <file_helper.h>

Public Member Functions

 file_helper ()
 
 file_helper (const file_helper &)=delete
 
file_helperoperator= (const file_helper &)=delete
 
 ~file_helper ()
 
void open (const filename_t &fname, bool truncate=false)
 
void reopen (bool truncate)
 
void flush ()
 
void close ()
 
void write (const log_msg &msg)
 
size_t size () const
 
const filename_tfilename () const
 

Static Public Member Functions

static bool file_exists (const filename_t &fname)
 
static std::tuple< filename_t, filename_tsplit_by_extenstion (const spdlog::filename_t &fname)
 

Public Attributes

const int open_tries = 5
 
const int open_interval = 10
 

Private Attributes

FILE_fd
 
filename_t _filename
 

Detailed Description

Definition at line 27 of file file_helper.h.

Constructor & Destructor Documentation

◆ file_helper() [1/2]

spdlog::details::file_helper::file_helper ( )
inlineexplicit

Definition at line 34 of file file_helper.h.

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

◆ file_helper() [2/2]

spdlog::details::file_helper::file_helper ( const file_helper & )
delete

◆ ~file_helper()

spdlog::details::file_helper::~file_helper ( )
inline

Definition at line 41 of file file_helper.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ close()

void spdlog::details::file_helper::close ( )
inline

Definition at line 77 of file file_helper.h.

+ Here is the caller graph for this function:

◆ file_exists()

static bool spdlog::details::file_helper::file_exists ( const filename_t & fname)
inlinestatic

Definition at line 106 of file file_helper.h.

◆ filename()

const filename_t & spdlog::details::file_helper::filename ( ) const
inline

Definition at line 101 of file file_helper.h.

◆ flush()

void spdlog::details::file_helper::flush ( )
inline

Definition at line 72 of file file_helper.h.

◆ open()

void spdlog::details::file_helper::open ( const filename_t & fname,
bool truncate = false )
inline

Definition at line 47 of file file_helper.h.

+ Here is the call graph for this function:

◆ operator=()

file_helper & spdlog::details::file_helper::operator= ( const file_helper & )
delete

◆ reopen()

void spdlog::details::file_helper::reopen ( bool truncate)
inline

Definition at line 64 of file file_helper.h.

◆ size()

size_t spdlog::details::file_helper::size ( ) const
inline

Definition at line 94 of file file_helper.h.

◆ split_by_extenstion()

static std::tuple< filename_t, filename_t > spdlog::details::file_helper::split_by_extenstion ( const spdlog::filename_t & fname)
inlinestatic

Definition at line 124 of file file_helper.h.

◆ write()

void spdlog::details::file_helper::write ( const log_msg & msg)
inline

Definition at line 86 of file file_helper.h.

Member Data Documentation

◆ _fd

FILE* spdlog::details::file_helper::_fd
private

Definition at line 142 of file file_helper.h.

◆ _filename

filename_t spdlog::details::file_helper::_filename
private

Definition at line 143 of file file_helper.h.

◆ open_interval

const int spdlog::details::file_helper::open_interval = 10

Definition at line 32 of file file_helper.h.

◆ open_tries

const int spdlog::details::file_helper::open_tries = 5

Definition at line 31 of file file_helper.h.


The documentation for this class was generated from the following file: