rasdaman complete source
|
#include <akgnet_file.hh>
Public Member Functions | |
File () throw () | |
Default constructor. More... | |
File (int osFileDescriptor) throw () | |
void | connectToDescriptor (int osFileDescriptor) throw () |
![]() | |
~FileDescriptor () throw () | |
Destructor, if open, closes the file descriptor. More... | |
int | operator() () throw () |
Returns the OS file descriptor. More... | |
bool | isOpen () throw () |
void | close () throw () |
Closes the descriptor. More... | |
int | getErrno () throw () |
Returns the error number of the last operation. More... | |
int | write (const void *buffer, int count) throw () |
int | read (void *buffer, int count) throw () |
bool | setNonBlocking (bool nonBlocking) throw () |
bool | isNonBlocking () throw () |
Returns true if the descriptors is in non-blocking mode. More... | |
Additional Inherited Members | |
![]() | |
FileDescriptor () throw () | |
Protected constructor. More... | |
void | saveErrno () throw () |
Saves the errno. More... | |
![]() | |
int | fileDescriptor |
int | savedErrno |
This class represents the files in the file descriptor hierarchie. Since this is a network library, our concearn is only for the descriptor of the files. The primary use of this class is access to file descriptors opened in other ways than sockets, like stdin or stdout
akg::File::File | ( | ) | ||
throw | ( | |||
) |
Default constructor.
akg::File::File | ( | int | osFileDescriptor | ) | |
throw | ( | ||||
) |
Constructor taking an already opened file descriptor Assert: osFileDescriptor > 0
void akg::File::connectToDescriptor | ( | int | osFileDescriptor | ) | |
throw | ( | ||||
) |
Connect to an already opened file descriptor Assert: osFileDescriptor > 0