Livox SDK API  V2.2.0
spdlog::details::file_helper Class Reference

#include <file_helper.h>

Public Member Functions

 file_helper ()=default
 
 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 fmt::memory_buffer &buf)
 
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_extension (const spdlog::filename_t &fname)
 

Public Attributes

const int open_tries = 5
 
const int open_interval = 10
 

Detailed Description

Definition at line 25 of file file_helper.h.

Constructor & Destructor Documentation

spdlog::details::file_helper::file_helper ( )
explicitdefault
spdlog::details::file_helper::file_helper ( const file_helper )
delete
spdlog::details::file_helper::~file_helper ( )
inline

Definition at line 37 of file file_helper.h.

Member Function Documentation

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

Definition at line 74 of file file_helper.h.

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

Definition at line 107 of file file_helper.h.

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

Definition at line 102 of file file_helper.h.

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

Definition at line 69 of file file_helper.h.

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

Definition at line 42 of file file_helper.h.

file_helper& spdlog::details::file_helper::operator= ( const file_helper )
delete
void spdlog::details::file_helper::reopen ( bool  truncate)
inline

Definition at line 60 of file file_helper.h.

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

Definition at line 93 of file file_helper.h.

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

Definition at line 125 of file file_helper.h.

void spdlog::details::file_helper::write ( const fmt::memory_buffer buf)
inline

Definition at line 83 of file file_helper.h.

Member Data Documentation

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

Definition at line 30 of file file_helper.h.

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

Definition at line 29 of file file_helper.h.


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