libcommonc++  0.7
DataEncoder::Manipulator Class Referenceabstract

A base class for DataEncoder manipulators. More...

#include <DataEncoder.h++>

Inheritance diagram for DataEncoder::Manipulator:

Public Member Functions

virtual ~Manipulator ()
 Destructor. More...
 
virtual void apply (DataEncoder &encoder) const =0
 Apply the DataManipulator to a DataEncoder. More...
 

Detailed Description

A base class for DataEncoder manipulators.

A manipulator modifies the behavior of the encoder in some way, and can be inlined with other stream operators, in much the same way as the C++ standard library's I/O manipulators work with C++ streams.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ ~Manipulator()

virtual ~Manipulator ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ apply()

virtual void apply ( DataEncoder encoder) const
pure virtual

Apply the DataManipulator to a DataEncoder.

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

Implemented in DataEncoder::SetLimit, DataEncoder::Align, DataEncoder::Skip, DataEncoder::SetLength, and DataEncoder::SetEndianness.


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