|
spdlog
|
Definition at line 16 of file file_helper.h.
#include <file_helper.h>
Public Member Functions | |
| file_helper ()=default | |
| file_helper (const file_helper &)=delete | |
| file_helper & | operator= (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_t & | filename () const |
Static Public Member Functions | |
| static std::tuple< filename_t, filename_t > | split_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_ |
|
explicitdefault |
|
delete |
| SPDLOG_INLINE spdlog::details::file_helper::~file_helper | ( | ) |
Definition at line 23 of file file_helper-inl.h.
| SPDLOG_INLINE void spdlog::details::file_helper::close | ( | ) |
Definition at line 78 of file file_helper-inl.h.
| SPDLOG_INLINE const filename_t & spdlog::details::file_helper::filename | ( | ) | const |
Definition at line 106 of file file_helper-inl.h.
| SPDLOG_INLINE void spdlog::details::file_helper::flush | ( | ) |
Definition at line 73 of file file_helper-inl.h.
| SPDLOG_INLINE void spdlog::details::file_helper::open | ( | const filename_t & | fname, |
| bool | truncate = false |
||
| ) |
Definition at line 28 of file file_helper-inl.h.
|
delete |
| SPDLOG_INLINE void spdlog::details::file_helper::reopen | ( | bool | truncate | ) |
Definition at line 64 of file file_helper-inl.h.
| SPDLOG_INLINE size_t spdlog::details::file_helper::size | ( | ) | const |
Definition at line 97 of file file_helper-inl.h.
|
static |
Definition at line 124 of file file_helper-inl.h.
| SPDLOG_INLINE void spdlog::details::file_helper::write | ( | const memory_buf_t & | buf | ) |
Definition at line 87 of file file_helper-inl.h.
|
private |
Definition at line 51 of file file_helper.h.
|
private |
Definition at line 52 of file file_helper.h.
|
private |
Definition at line 50 of file file_helper.h.
|
private |
Definition at line 49 of file file_helper.h.