Public Member Functions | Private Member Functions | Private Attributes

smart_fd Class Reference
[Utility Library]

smart file descriptor -- only use this for low-level objects! You probably want to use nstream or iostreams instead. More...

#include <smart_fd.h>

List of all members.

Public Member Functions

 smart_fd (int fd=-1) throw ()
 ~smart_fd (void) throw ()
 operator int (void) throw ()
int get (void) throw ()
int release (void) throw ()
void close (void) throw ()
void reset (IN int fd) throw ()
 smart_fd (void) throw ()
 smart_fd (int fd) throw ()
 ~smart_fd (void) throw ()
void clear (void) throw ()
bool open (const char *path, int flags)
 operator int (void) const throw ()
 operator bool (void) const throw ()
bool operator! (void) const throw ()

Private Member Functions

 smart_fd (IN const smart_fd &) throw ()
const smart_fdoperator= (IN const smart_fd &) throw ()
 smart_fd (const smart_fd &)

Private Attributes

int m_fd

Detailed Description

smart file descriptor -- only use this for low-level objects! You probably want to use nstream or iostreams instead.

Definition at line 41 of file smart_fd.h.


Constructor & Destructor Documentation

smart_fd::smart_fd ( int  fd = -1  )  throw () [inline]

Definition at line 45 of file smart_fd.h.

smart_fd::~smart_fd ( void   )  throw () [inline]

Definition at line 46 of file smart_fd.h.

smart_fd::smart_fd ( IN const smart_fd  )  throw () [private]
smart_fd::smart_fd ( void   )  throw () [inline]

Definition at line 170 of file file.h.


Member Function Documentation

smart_fd::operator int ( void   )  throw () [inline]

Definition at line 49 of file smart_fd.h.

int smart_fd::get ( void   )  throw () [inline]

Definition at line 54 of file smart_fd.h.

int smart_fd::release ( void   )  throw () [inline]

Definition at line 59 of file smart_fd.h.

void smart_fd::close ( void   )  throw () [inline]

Definition at line 66 of file smart_fd.h.

void smart_fd::reset ( IN int  fd  )  throw () [inline]

Definition at line 73 of file smart_fd.h.

const smart_fd& smart_fd::operator= ( IN const smart_fd  )  throw () [private]

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