Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
A class determining the used file descriptor from prefered (if available) and fallback file descriptor. More...
#include <fdstream.hpp>
Public Member Functions | |
fdaccessor (int, int) | |
Constrcutor of the class determining the resulting used descriptor. More... | |
int | get_fd () const |
Getter of the chosen file descriptor, either the prefered, or fallback one. More... | |
bool | is_redirected () const |
Getter of the redirected flag informing whether prefered or fallback file descriptor is used. More... | |
A class determining the used file descriptor from prefered (if available) and fallback file descriptor.
The prefered descriptor is used if the descriptor of the given number is available in the runtime.
|
explicit |
Constrcutor of the class determining the resulting used descriptor.
int ext::fdaccessor::get_fd | ( | ) | const |
Getter of the chosen file descriptor, either the prefered, or fallback one.
bool ext::fdaccessor::is_redirected | ( | ) | const |
Getter of the redirected flag informing whether prefered or fallback file descriptor is used.