Align Class Reference

A manipulator that skips past enough bytes to re-align the data stream at a specified boundary. More...

#include <DataEncoder.h++>

Inheritance diagram for Align:

Inheritance graph
[legend]
Collaboration diagram for Align:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Align (size_t size) throw ()
 Construct a new Align manipulator.
 ~Align () throw ()
 Destructor.

Protected Member Functions

void apply (DataEncoder &encoder) const throw (IOException)
 Apply the DataManipulator to a DataEncoder.


Detailed Description

A manipulator that skips past enough bytes to re-align the data stream at a specified boundary.

When reading, the bytes are simply skipped; when writing, the bytes are filled with NULs.

Author:
Mark Lindner

Constructor & Destructor Documentation

Align ( size_t  size  )  throw ()

Construct a new Align manipulator.

Parameters:
size The alignment size. Typical values include 2, 4, or 8. Other values are allowed but are of limited usefulness.

~Align (  )  throw ()

Destructor.


Member Function Documentation

void apply ( DataEncoder encoder  )  const throw (IOException) [protected, virtual]

Apply the DataManipulator to a DataEncoder.

Parameters:
encoder The target DataEncoder.
Exceptions:
IOException If an I/O error occurs.

Implements Manipulator.


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

Generated on Sat Apr 17 23:03:08 2010 for libcommonc++ by  doxygen 1.5.9