Agora  1.2.0
Agora project
spdlog::details::file_helper Class Reference

#include <file_helper.h>

Collaboration diagram for spdlog::details::file_helper:

Public Member Functions

 file_helper ()=default
 
 file_helper (const file_event_handlers &event_handlers)
 
 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 memory_buf_t &buf)
 
size_t size () const
 
const filename_tfilename () const
 

Static Public Member Functions

static std::tuple< filename_t, filename_tsplit_by_extension (const filename_t &fname)
 

Private Attributes

const int open_tries_ = 5
 
const unsigned int open_interval_ = 10
 
std::FILE * fd_ {nullptr}
 
filename_t filename_
 
file_event_handlers event_handlers_
 

Constructor & Destructor Documentation

◆ file_helper() [1/3]

spdlog::details::file_helper::file_helper ( )
default

◆ file_helper() [2/3]

SPDLOG_INLINE spdlog::details::file_helper::file_helper ( const file_event_handlers event_handlers)
explicit

◆ file_helper() [3/3]

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

◆ ~file_helper()

SPDLOG_INLINE spdlog::details::file_helper::~file_helper ( )
Here is the call graph for this function:

Member Function Documentation

◆ close()

SPDLOG_INLINE void spdlog::details::file_helper::close ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ filename()

const SPDLOG_INLINE filename_t & spdlog::details::file_helper::filename ( ) const
Here is the caller graph for this function:

◆ flush()

SPDLOG_INLINE void spdlog::details::file_helper::flush ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ open()

SPDLOG_INLINE void spdlog::details::file_helper::open ( const filename_t fname,
bool  truncate = false 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

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

◆ reopen()

SPDLOG_INLINE void spdlog::details::file_helper::reopen ( bool  truncate)
Here is the call graph for this function:

◆ size()

SPDLOG_INLINE size_t spdlog::details::file_helper::size ( ) const
Here is the call graph for this function:

◆ split_by_extension()

SPDLOG_INLINE std::tuple< filename_t, filename_t > spdlog::details::file_helper::split_by_extension ( const filename_t fname)
static
Here is the caller graph for this function:

◆ write()

SPDLOG_INLINE void spdlog::details::file_helper::write ( const memory_buf_t buf)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ event_handlers_

file_event_handlers spdlog::details::file_helper::event_handlers_
private

◆ fd_

std::FILE* spdlog::details::file_helper::fd_ {nullptr}
private

◆ filename_

filename_t spdlog::details::file_helper::filename_
private

◆ open_interval_

const unsigned int spdlog::details::file_helper::open_interval_ = 10
private

◆ open_tries_

const int spdlog::details::file_helper::open_tries_ = 5
private

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