Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | List of all members
spdlog::details::file_helper Class Reference

#include <file_helper.h>

Public Member Functions

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

Static Public Member Functions

static bool file_exists (const filename_t &name)
 

Public Attributes

const int open_interval = 10
 
const int open_tries = 5
 

Private Attributes

FILE * _fd
 
filename_t _filename
 

Detailed Description

Definition at line 26 of file file_helper.h.

Constructor & Destructor Documentation

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

Definition at line 33 of file file_helper.h.

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

Definition at line 40 of file file_helper.h.

Member Function Documentation

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

Definition at line 76 of file file_helper.h.

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

Definition at line 106 of file file_helper.h.

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

Definition at line 101 of file file_helper.h.

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

Definition at line 71 of file file_helper.h.

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

Definition at line 46 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 63 of file file_helper.h.

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

Definition at line 94 of file file_helper.h.

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

Definition at line 85 of file file_helper.h.

Member Data Documentation

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

Definition at line 113 of file file_helper.h.

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

Definition at line 114 of file file_helper.h.

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

Definition at line 31 of file file_helper.h.

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

Definition at line 30 of file file_helper.h.


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


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:10