class Akenti::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

[more]virtual ~AbstractIOHandlerImpl ()
Destroys this object.
[more]virtual int getDescriptor () const
Gets the descriptor.
[more]virtual bool isOpen () const
Determines if the descriptor is open.
[more]virtual bool isClosed () const
Determines if the descriptor is closed.
[more]virtual int read (char* buf, int num)
Read from the descriptor, a specified number of bytes into buffer.
[more]virtual int write (const char* buf, int num)
Write to the descriptor, a specified number of bytes from the buffer.
[more]virtual int close ()
Closes the descriptor.
[more]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.

ovirtual ~AbstractIOHandlerImpl()
Destroys this object.

ovirtual int getDescriptor() const = 0
Gets the descriptor.

Returns:
the descriptor

ovirtual bool isOpen() const = 0
Determines if the descriptor is open.

Returns:
true if the descriptor is open, otherwise returns false

ovirtual bool isClosed() const = 0
Determines if the descriptor is closed.

Returns:
an true if the descriptor is closed, otherwise returns false

ovirtual int read(char* buf, int num) = 0
Read from the descriptor, a specified number of bytes into buffer.

Parameters:
buf - the buffer to read into
num - specified number of bytes
Returns:
the actual number of bytes being read

ovirtual int write(const char* buf, int num) = 0
Write to the descriptor, a specified number of bytes from the buffer.

Parameters:
buf - the buffer to write from
num - specified number of bytes
Returns:
the actual bytes being written

ovirtual int close() = 0
Closes the descriptor.

Returns:
number after being closed

ovirtual string paramString() const = 0
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 HTML hierarchy of classes or Java



This page was generated with the help of DOC++.