ACE_Asynch_Read_File_Impl(3)

ACE_Asynch_Read_File_Impl3

Abstract base class for all the concrete implementation classes that provide different implementations for the ace_asynch_read_file::result.

Usage

class ACE_Asynch_Read_File_Impl : 
  public virtual ACE_Asynch_Read_Stream_Impl
{
  public:
    virtual ~ACE_Asynch_Read_File_Impl (void);
    virtual int read (
        ACE_Message_Block &message_block,
        u_long bytes_to_read,
        u_long offset,
        u_long offset_high,
        const void *act,
        int priority,
        int signal_number
        ) = 0;
    virtual int read (
        ACE_Message_Block &message_block,
        u_long bytes_to_read,
        const void *act,
        int priority,
        int signal_number
        ) = 0;
  protected:
    ACE_Asynch_Read_File_Impl (void);
};

Overview

This class contains asbtract base classes for all the concrete implementation classes for the various asynchronous operations that are used with the Praoctor.

Public members

virtual ~ACE_Asynch_Read_File_Impl (void);
virtual int read (
    ACE_Message_Block &message_block,
    u_long bytes_to_read,
    u_long offset,
    u_long offset_high,
    const void *act,
    int priority,
    int signal_number
    ) = 0;

This starts off an asynchronous read. Upto bytes_to_read will be read and stored in the message_block. The read will start at offset from the beginning of the file.

virtual int read (
    ACE_Message_Block &message_block,
    u_long bytes_to_read,
    const void *act,
    int priority,
    int signal_number
    ) = 0;

This starts off an asynchronous read. Upto bytes_to_read will be read and stored in the message_block.

Protected members

ACE_Asynch_Read_File_Impl (void);

Do-nothing constructor.

Library

ace