Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
buffered_file Class Reference

#include <posix.h>

Public Member Functions

 buffered_file () FMT_NOEXCEPT
 
FMT_API ~buffered_file () FMT_NOEXCEPT
 
 buffered_file (buffered_file &&other) FMT_NOEXCEPT
 
buffered_fileoperator= (buffered_file &&other)
 
FMT_API buffered_file (cstring_view filename, cstring_view mode)
 
FMT_API void close ()
 
FILE * get () const FMT_NOEXCEPT
 
FMT_API int() fileno () const
 
void vprint (string_view format_str, format_args args)
 
template<typename... Args>
void print (string_view format_str, const Args &...args)
 

Private Member Functions

 buffered_file (FILE *f)
 
 buffered_file (const buffered_file &)=delete
 
void operator= (const buffered_file &)=delete
 

Private Attributes

FILE * file_
 

Friends

class file
 

Detailed Description

Definition at line 127 of file posix.h.

Constructor & Destructor Documentation

buffered_file::buffered_file ( FILE *  f)
inlineexplicitprivate

Definition at line 133 of file posix.h.

buffered_file::buffered_file ( )
inline

Definition at line 137 of file posix.h.

137 : file_(FMT_NULL) {}
FILE * file_
Definition: posix.h:129
#define FMT_NULL
Definition: core.h:107
FMT_API buffered_file::~buffered_file ( )
buffered_file::buffered_file ( const buffered_file )
privatedelete
buffered_file::buffered_file ( buffered_file &&  other)
inline

Definition at line 148 of file posix.h.

148  : file_(other.file_) {
149  other.file_ = FMT_NULL;
150  }
FILE * file_
Definition: posix.h:129
#define FMT_NULL
Definition: core.h:107
FMT_API buffered_file::buffered_file ( cstring_view  filename,
cstring_view  mode 
)

Member Function Documentation

FMT_API void buffered_file::close ( )
FMT_API int() buffered_file::fileno ( ) const
FILE* buffered_file::get ( ) const
inline

Definition at line 166 of file posix.h.

166 { return file_; }
FILE * file_
Definition: posix.h:129
void buffered_file::operator= ( const buffered_file )
privatedelete
buffered_file& buffered_file::operator= ( buffered_file &&  other)
inline

Definition at line 152 of file posix.h.

152  {
153  close();
154  file_ = other.file_;
155  other.file_ = FMT_NULL;
156  return *this;
157  }
FMT_API void close()
FILE * file_
Definition: posix.h:129
#define FMT_NULL
Definition: core.h:107
template<typename... Args>
void buffered_file::print ( string_view  format_str,
const Args &...  args 
)
inline

Definition at line 177 of file posix.h.

177  {
178  vprint(format_str, make_format_args(args...));
179  }
static QCString args
Definition: declinfo.cpp:674
format_arg_store< Context, Args... > make_format_args(const Args &...args)
Definition: core.h:1199
void vprint(string_view format_str, format_args args)
Definition: posix.h:172
void buffered_file::vprint ( string_view  format_str,
format_args  args 
)
inline

Definition at line 172 of file posix.h.

172  {
173  fmt::vprint(file_, format_str, args);
174  }
FILE * file_
Definition: posix.h:129
void vprint(std::FILE *f, const text_style &ts, const S &format, basic_format_args< typename buffer_context< Char >::type > args)
Definition: color.h:517

Friends And Related Function Documentation

friend class file
friend

Definition at line 131 of file posix.h.

Member Data Documentation

FILE* buffered_file::file_
private

Definition at line 129 of file posix.h.


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