Base Framework
|
#include <base/io/FileDescriptor.h>
Inherited by FileDescriptorInputStream, and FileDescriptorOutputStream.
Classes | |
class | Descriptor |
File descriptor. More... | |
Public Member Functions | |
FileDescriptor () noexcept | |
FileDescriptor (OperatingSystem::Handle handle) noexcept | |
FileDescriptor (const FileDescriptor ©) noexcept | |
FileDescriptor & | operator= (const FileDescriptor &assign) noexcept |
void | close () |
bool | isANSITerminal () const noexcept |
bool | isTerminal () const noexcept |
bool | isPipe () const noexcept |
int | getFlags () const |
void | setFlags (int flags) |
OperatingSystem::Handle | getHandle () const noexcept |
bool | isValid () const noexcept |
void | setHandle (OperatingSystem::Handle handle) noexcept |
void | setNonBlocking (bool value) |
~FileDescriptor () | |
![]() | |
virtual | ~Stream () noexcept(false) |
![]() | |
ReferenceCountedObject () noexcept | |
ReferenceCountedObject (const ReferenceCountedObject ©) noexcept | |
ReferenceCountedObject (ReferenceCountedObject &&move) noexcept | |
ReferenceCountedObject & | operator= (const ReferenceCountedObject ©) noexcept |
ReferenceCountedObject & | operator= (ReferenceCountedObject &&move) noexcept |
MemorySize | getNumberOfReferences_INTERNAL () const noexcept |
virtual bool | useGarbageCollector () const noexcept |
![]() | |
DynamicObject () noexcept | |
bool | isValidObject () const noexcept |
virtual | ~DynamicObject () noexcept(false) |
_COM_AZURE_DEV__BASE__OVERRIDE_ALLOC () | |
Static Public Member Functions | |
static FileDescriptor | getStandardInput () noexcept |
static FileDescriptor | getStandardOutput () noexcept |
static FileDescriptor | getStandardError () noexcept |
Protected Attributes | |
Reference< Handle > | fd |
File descriptor.
The FileDescriptor class serves as a general handle to a source or sink of bytes within the operatingsystem (e.g. file, socket and pipe). This class is normally not used directly by the application.
|
noexcept |
Initializes the file descriptor as invalid.
|
noexcept |
Initializes the file descriptor.
handle | Handle to file descriptor. |
|
noexcept |
Copy constructor.
FileDescriptor::~FileDescriptor | ( | ) |
Destroys the file descriptor.
|
virtual |
Closes the file descriptor.
Implements Stream.
Reimplemented in FileDescriptorInputStream, and FileDescriptorOutputStream.
int FileDescriptor::getFlags | ( | ) | const |
Gets the flags of the file descriptor.
|
noexcept |
Gets the handle of the file descriptor.
|
staticnoexcept |
Returns the standard error file descriptor.
|
staticnoexcept |
Returns the standard input file descriptor.
|
staticnoexcept |
Returns the standard output file descriptor.
|
noexcept |
Returns true if the handle is an ANSI terminal.
|
noexcept |
Returns true if the file descriptor is a pipe.
|
noexcept |
Returns true if the handle is a terminal.
|
noexcept |
Returns true if the handle is valid.
|
noexcept |
Assignment operator.
void FileDescriptor::setFlags | ( | int | flags | ) |
Sets the flags of the file descriptor.
|
noexcept |
Sets the handle of the file descriptor.
void FileDescriptor::setNonBlocking | ( | bool | value | ) |
Sets the non-blocking flag of the file descriptor.