libcommonc++  0.7
DataEncoder::Skip Class Reference

A manipulator that skips past bytes in the stream. More...

#include <DataEncoder.h++>

Inheritance diagram for DataEncoder::Skip:
Collaboration diagram for DataEncoder::Skip:

Public Member Functions

 Skip (size_t count)
 Construct a new Skip manipulator. More...
 
 ~Skip ()
 Destructor. More...
 

Protected Member Functions

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

Detailed Description

A manipulator that skips past bytes in the stream.

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

Author
Mark Lindner

Constructor & Destructor Documentation

◆ Skip()

Skip ( size_t  count)

Construct a new Skip manipulator.

Parameters
countThe number of bytes to skip.

◆ ~Skip()

~Skip ( )

Destructor.

Member Function Documentation

◆ apply()

void apply ( DataEncoder encoder) const
protectedvirtual

Apply the DataManipulator to a DataEncoder.

Parameters
encoderThe target DataEncoder.
Exceptions
IOExceptionIf an I/O error occurs.

Implements DataEncoder::Manipulator.


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