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

Wrapper class for FILE *. More...

#include <utility.h>

Collaboration diagram for stdio_file:
Collaboration graph

List of all members.

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 220 of file utility.h.

Constructor & Destructor Documentation

stdio_file::stdio_file ( FILE *  f = 0,
bool  owner = false 
) [inline, explicit]

Definition at line 223 of file utility.h.

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

Definition at line 226 of file utility.h.

stdio_file::~stdio_file ( ) [inline]

Definition at line 229 of file utility.h.

stdio_file::stdio_file ( const stdio_file ) [private]

Member Function Documentation

bool stdio_file::close ( ) [inline]

Definition at line 248 of file utility.h.

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

Definition at line 242 of file utility.h.

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

Definition at line 235 of file utility.h.

stdio_file::operator FILE * ( ) [inline]

Definition at line 259 of file utility.h.

bool stdio_file::operator! ( ) const [inline]

Definition at line 262 of file utility.h.

void stdio_file::operator= ( const stdio_file ) [private]

Member Data Documentation

FILE* stdio_file::m_file [private]

Definition at line 266 of file utility.h.

bool stdio_file::m_owner [private]

Definition at line 267 of file utility.h.

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