TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
fmt::BufferedFile Class Reference

#include <posix.h>

Classes

struct  Proxy
 

Public Member Functions

 BufferedFile () FMT_NOEXCEPT
 
 ~BufferedFile () FMT_NOEXCEPT
 
 BufferedFile (Proxy p) FMT_NOEXCEPT
 
 BufferedFile (BufferedFile &f) FMT_NOEXCEPT
 
BufferedFileoperator= (Proxy p)
 
BufferedFileoperator= (BufferedFile &other)
 
 operator Proxy () FMT_NOEXCEPT
 
 BufferedFile (CStringRef filename, CStringRef mode)
 
void close ()
 
FILE * get () const FMT_NOEXCEPT
 
int() fileno () const
 
void print (CStringRef format_str, const ArgList &args)
 

Private Member Functions

 BufferedFile (FILE *f)
 

Private Attributes

FILE * file_
 

Friends

class File
 

Constructor & Destructor Documentation

fmt::BufferedFile::BufferedFile ( FILE *  f)
inlineexplicitprivate
124 : file_(f) {}
FILE * file_
Definition: posix.h:120
fmt::BufferedFile::BufferedFile ( )
inline
128 : file_(0) {}
FILE * file_
Definition: posix.h:120
fmt::BufferedFile::~BufferedFile ( )
fmt::BufferedFile::BufferedFile ( Proxy  p)
inline
146 : file_(p.file) {}
FILE * file_
Definition: posix.h:120
fmt::BufferedFile::BufferedFile ( BufferedFile f)
inline
149  : file_(f.file_) {
150  f.file_ = 0;
151  }
FILE * file_
Definition: posix.h:120
fmt::BufferedFile::BufferedFile ( CStringRef  filename,
CStringRef  mode 
)

Member Function Documentation

void fmt::BufferedFile::close ( )

+ Here is the caller graph for this function:

int() fmt::BufferedFile::fileno ( ) const
FILE* fmt::BufferedFile::get ( ) const
inline
200 { return file_; }
FILE * file_
Definition: posix.h:120
fmt::BufferedFile::operator Proxy ( )
inline
170  {
171  Proxy p = {file_};
172  file_ = 0;
173  return p;
174  }
FILE * file_
Definition: posix.h:120
BufferedFile& fmt::BufferedFile::operator= ( Proxy  p)
inline
154  {
155  close();
156  file_ = p.file;
157  return *this;
158  }
FILE * file_
Definition: posix.h:120

+ Here is the call graph for this function:

BufferedFile& fmt::BufferedFile::operator= ( BufferedFile other)
inline
161  {
162  close();
163  file_ = other.file_;
164  other.file_ = 0;
165  return *this;
166  }
FILE * file_
Definition: posix.h:120

+ Here is the call graph for this function:

void fmt::BufferedFile::print ( CStringRef  format_str,
const ArgList args 
)
inline
206  {
207  fmt::print(file_, format_str, args);
208  }
FILE * file_
Definition: posix.h:120
FMT_API void print(std::FILE *f, CStringRef format_str, ArgList args)

+ Here is the call graph for this function:

Friends And Related Function Documentation

friend class File
friend

Member Data Documentation

FILE* fmt::BufferedFile::file_
private

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