class IOHandlerImpl : public AbstractIOHandlerImpl

This class wraps a file descriptor and provides methods to get information about the descriptor and to read and write from the descriptor

Inheritance:


Public Methods

IOHandlerImpl (int fd)
Constructs this object
~IOHandlerImpl ()
Destroys this object
int getDescriptor () const
Gets the descriptor
bool isOpen () const
Determines if the descriptor is open
bool isClosed () const
To check if the file descriptor is closed
int read (char* buf, int num)
To read from the descriptor, a specified number of bytes into buffer
int write (const char* buf, int num)
To write to the descriptor, a specified number of bytes from the buffer
int close ()
Closes the descriptor
string paramString () const
Returns a string representation for IOHandler which is used debugging purposes

Inherited from AbstractIOHandlerImpl:


Documentation

This class wraps a file descriptor and provides methods to get information about the descriptor and to read and write from the descriptor
IOHandlerImpl(int fd)
Constructs this object.
Parameters:
fd - the file descriptor

~IOHandlerImpl()
Destroys this object

int getDescriptor() const
Gets the descriptor.
Returns:
the descriptor

bool isOpen() const
Determines if the descriptor is open
Returns:
an indication if descriptor is open or not

bool isClosed() const
To check if the file descriptor is closed.
Returns:
indicates that the file descriptor is closed

int read(char* buf, int num)
To read from the descriptor, a specified number of bytes into buffer.
Returns:
the actual bytes being read
Parameters:
buf - the buffer to read into
num - specified number of bytes

int write(const char* buf, int num)
To write to the descriptor, a specified number of bytes from the buffer.
Returns:
the actual bytes being written
Parameters:
buf - the buffer to write from
num - specified number of bytes to write

int close()
Closes the descriptor.
Returns:
status after being closed

string paramString() const
Returns a string representation for IOHandler which is used debugging purposes.
Returns:
debugging info


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de