smartmontools SVN Rev 5406
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 161 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 164 of file utility.h.

◆ stdio_file() [2/3]

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

Definition at line 167 of file utility.h.

◆ ~stdio_file()

stdio_file::~stdio_file ( )
inline

Definition at line 170 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 193 of file utility.h.

◆ open() [1/2]

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

Definition at line 176 of file utility.h.

◆ open() [2/2]

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

Definition at line 185 of file utility.h.

◆ operator FILE *()

stdio_file::operator FILE * ( )
inline

Definition at line 204 of file utility.h.

◆ operator!()

bool stdio_file::operator! ( ) const
inline

Definition at line 207 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 211 of file utility.h.

◆ m_owner

bool stdio_file::m_owner
private

Definition at line 212 of file utility.h.


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