class AbstractIOHandlerImpl

This is an abstract class IOHandler that defines the methods for a descriptor such as determining if the input/output descriptor is open or closed and read and write methods for the descriptor

Inheritance:


Public Methods

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

Documentation

This is an abstract class IOHandler that defines the methods for a descriptor such as determining if the input/output descriptor is open or closed and read and write methods for the descriptor.
virtual ~AbstractIOHandlerImpl()
Destroys this object

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

virtual bool isOpen() const
Determines if the descriptor is open.
Returns:
true if the descriptor is open, otherwise returns false

virtual bool isClosed() const
Determines if the descriptor is closed.
Returns:
an true if the descriptor is closed, otherwise returns false

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

virtual int write(const char* buf, int num)
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

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

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


Direct child classes:
IOHandlerImpl
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/11/01

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