#include <utilmm/system/system.hh>
Inherited by utilmm::process::output_file.
Public Member Functions | |
| auto_close () | |
| auto_close (int fileno) | |
| auto_close (FILE *stream) | |
| ~auto_close () | |
| template<typename T> | |
| T | handle () const |
| void | close () |
| void | reset (int fd) |
| void | reset (FILE *stream) |
| void | detach () |
| utilmm::auto_close::auto_close | ( | ) |
| utilmm::auto_close::auto_close | ( | int | fileno | ) | [explicit] |
| utilmm::auto_close::auto_close | ( | FILE * | stream | ) | [explicit] |
| utilmm::auto_close::~auto_close | ( | ) |
| int utilmm::auto_close::handle< int > | ( | ) | const [inline] |
Access to the file descriptor.
| std::bad_cast | Raised if the required type is not the right file descriptor type (i.e. if handle<FILE> is calledd on a auto_close object created with an 'int' fd) |
| void utilmm::auto_close::close | ( | ) |
Close the file descriptor right away
| void utilmm::auto_close::reset | ( | int | fd | ) |
First, close the current defined file descriptor and then sets it to a new one. Calling reset(-1) is equivalent to calling close() directly.
| void utilmm::auto_close::reset | ( | FILE * | stream | ) |
First, close the current defined file descriptor and then sets it to a new one. Calling reset(-1) is equivalent to calling close() directly.
| void utilmm::auto_close::detach | ( | ) |
Disassociates this object and the file descriptor associated with it without closing the file descriptor
1.5.3