ACE  6.3.3
Public Member Functions | Protected Attributes | List of all members
ACE_Asynch_Transmit_File::Header_And_Trailer Class Reference

The class defines a data structure that contains pointers to data to send before and after the file data is sent. More...

#include <Asynch_IO.h>

Collaboration diagram for ACE_Asynch_Transmit_File::Header_And_Trailer:
Collaboration graph
[legend]

Public Member Functions

 Header_And_Trailer (ACE_Message_Block *header=0, size_t header_bytes=0, ACE_Message_Block *trailer=0, size_t trailer_bytes=0)
 Constructor. More...
 
virtual ~Header_And_Trailer (void)
 Destructor. More...
 
void header_and_trailer (ACE_Message_Block *header=0, size_t header_bytes=0, ACE_Message_Block *trailer=0, size_t trailer_bytes=0)
 This method allows all the member to be set in one fell swoop. More...
 
ACE_Message_Blockheader (void) const
 Get header which goes before the file data. More...
 
void header (ACE_Message_Block *message_block)
 Set header which goes before the file data. More...
 
size_t header_bytes (void) const
 Get size of the header data. More...
 
void header_bytes (size_t bytes)
 Set size of the header data. More...
 
ACE_Message_Blocktrailer (void) const
 Get trailer which goes after the file data. More...
 
void trailer (ACE_Message_Block *message_block)
 Set trailer which goes after the file data. More...
 
size_t trailer_bytes (void) const
 Get size of the trailer data. More...
 
void trailer_bytes (size_t bytes)
 Set size of the trailer data. More...
 
ACE_LPTRANSMIT_FILE_BUFFERS transmit_buffers (void)
 Conversion routine. More...
 

Protected Attributes

ACE_Message_Blockheader_
 Header data. More...
 
size_t header_bytes_
 Size of header data. More...
 
ACE_Message_Blocktrailer_
 Trailer data. More...
 
size_t trailer_bytes_
 Size of trailer data. More...
 
ACE_TRANSMIT_FILE_BUFFERS transmit_buffers_
 Target data structure. More...
 

Detailed Description

The class defines a data structure that contains pointers to data to send before and after the file data is sent.

This class provides a wrapper over TRANSMIT_FILE_BUFFERS and provided a consistent use of ACE_Message_Blocks.

Constructor & Destructor Documentation

ACE_Asynch_Transmit_File::Header_And_Trailer::Header_And_Trailer ( ACE_Message_Block header = 0,
size_t  header_bytes = 0,
ACE_Message_Block trailer = 0,
size_t  trailer_bytes = 0 
)

Constructor.

ACE_Asynch_Transmit_File::Header_And_Trailer::~Header_And_Trailer ( void  )
virtual

Destructor.

Member Function Documentation

ACE_Message_Block * ACE_Asynch_Transmit_File::Header_And_Trailer::header ( void  ) const

Get header which goes before the file data.

void ACE_Asynch_Transmit_File::Header_And_Trailer::header ( ACE_Message_Block message_block)

Set header which goes before the file data.

void ACE_Asynch_Transmit_File::Header_And_Trailer::header_and_trailer ( ACE_Message_Block header = 0,
size_t  header_bytes = 0,
ACE_Message_Block trailer = 0,
size_t  trailer_bytes = 0 
)

This method allows all the member to be set in one fell swoop.

size_t ACE_Asynch_Transmit_File::Header_And_Trailer::header_bytes ( void  ) const

Get size of the header data.

void ACE_Asynch_Transmit_File::Header_And_Trailer::header_bytes ( size_t  bytes)

Set size of the header data.

ACE_Message_Block * ACE_Asynch_Transmit_File::Header_And_Trailer::trailer ( void  ) const

Get trailer which goes after the file data.

void ACE_Asynch_Transmit_File::Header_And_Trailer::trailer ( ACE_Message_Block message_block)

Set trailer which goes after the file data.

size_t ACE_Asynch_Transmit_File::Header_And_Trailer::trailer_bytes ( void  ) const

Get size of the trailer data.

void ACE_Asynch_Transmit_File::Header_And_Trailer::trailer_bytes ( size_t  bytes)

Set size of the trailer data.

ACE_LPTRANSMIT_FILE_BUFFERS ACE_Asynch_Transmit_File::Header_And_Trailer::transmit_buffers ( void  )

Conversion routine.

Member Data Documentation

ACE_Message_Block* ACE_Asynch_Transmit_File::Header_And_Trailer::header_
protected

Header data.

size_t ACE_Asynch_Transmit_File::Header_And_Trailer::header_bytes_
protected

Size of header data.

ACE_Message_Block* ACE_Asynch_Transmit_File::Header_And_Trailer::trailer_
protected

Trailer data.

size_t ACE_Asynch_Transmit_File::Header_And_Trailer::trailer_bytes_
protected

Size of trailer data.

ACE_TRANSMIT_FILE_BUFFERS ACE_Asynch_Transmit_File::Header_And_Trailer::transmit_buffers_
protected

Target data structure.


The documentation for this class was generated from the following files: