smartmontools  SVN Rev 4092
Utility to control and monitor storage systems with "S.M.A.R.T."
Public Member Functions | Private Member Functions | Private Attributes | List of all members
stdio_file Class Reference

Wrapper class for FILE *. More...

#include <utility.h>

Collaboration diagram for stdio_file:
Collaboration graph
[legend]

Public Member Functions

 stdio_file (FILE *f=0, bool owner=false)
 
 stdio_file (const char *name, const char *mode)
 
 ~stdio_file ()
 
bool open (const char *name, const char *mode)
 
void open (FILE *f, bool owner=false)
 
bool close ()
 
 operator FILE * ()
 
bool operator! () const
 

Private Member Functions

 stdio_file (const stdio_file &)
 
void operator= (const stdio_file &)
 

Private Attributes

FILE * m_file
 
bool m_owner
 

Detailed Description

Wrapper class for FILE *.

Definition at line 180 of file utility.h.

Constructor & Destructor Documentation

stdio_file::stdio_file ( FILE *  f = 0,
bool  owner = false 
)
inlineexplicit

Definition at line 183 of file utility.h.

stdio_file::stdio_file ( const char *  name,
const char *  mode 
)
inline

Definition at line 186 of file utility.h.

stdio_file::~stdio_file ( )
inline

Definition at line 189 of file utility.h.

stdio_file::stdio_file ( const stdio_file )
private

Member Function Documentation

bool stdio_file::close ( )
inline

Definition at line 208 of file utility.h.

bool stdio_file::open ( const char *  name,
const char *  mode 
)
inline

Definition at line 195 of file utility.h.

void stdio_file::open ( FILE *  f,
bool  owner = false 
)
inline

Definition at line 202 of file utility.h.

stdio_file::operator FILE * ( )
inline

Definition at line 219 of file utility.h.

bool stdio_file::operator! ( ) const
inline

Definition at line 222 of file utility.h.

void stdio_file::operator= ( const stdio_file )
private

Member Data Documentation

FILE* stdio_file::m_file
private

Definition at line 226 of file utility.h.

bool stdio_file::m_owner
private

Definition at line 227 of file utility.h.


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