WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
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

◆ file_helper() [1/2]

spdlog::details::file_helper::file_helper ( )
explicitdefault

◆ 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 37 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 74 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 107 of file file_helper.h.

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

◆ filename()

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

Definition at line 102 of file file_helper.h.

◆ flush()

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

Definition at line 69 of file file_helper.h.

Here is the caller graph for this function:

◆ open()

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

Definition at line 42 of file file_helper.h.

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()

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

Definition at line 60 of file file_helper.h.

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

◆ size()

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

Definition at line 93 of file file_helper.h.

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

◆ split_by_extension()

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.

Here is the caller graph for this function:

◆ write()

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

Definition at line 83 of file file_helper.h.

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

Member Data Documentation

◆ open_interval

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

Definition at line 30 of file file_helper.h.

◆ open_tries

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: