smartmontools SVN Rev 5645
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 162 of file utility.h.

Constructor & Destructor Documentation

◆ stdio_file() [1/3]

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

Definition at line 165 of file utility.h.

◆ stdio_file() [2/3]

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

Definition at line 168 of file utility.h.

◆ ~stdio_file()

stdio_file::~stdio_file ( )
inline

Definition at line 171 of file utility.h.

◆ stdio_file() [3/3]

stdio_file::stdio_file ( const stdio_file )
private

Member Function Documentation

◆ close()

bool stdio_file::close ( )
inline

Definition at line 194 of file utility.h.

◆ open() [1/2]

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

Definition at line 177 of file utility.h.

◆ open() [2/2]

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

Definition at line 186 of file utility.h.

◆ operator FILE *()

stdio_file::operator FILE * ( )
inline

Definition at line 205 of file utility.h.

◆ operator!()

bool stdio_file::operator! ( ) const
inline

Definition at line 208 of file utility.h.

◆ operator=()

void stdio_file::operator= ( const stdio_file )
private

Member Data Documentation

◆ m_file

FILE* stdio_file::m_file
private

Definition at line 212 of file utility.h.

◆ m_owner

bool stdio_file::m_owner
private

Definition at line 213 of file utility.h.


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