libcommonc++  0.7
DataEncoder::SetLength Class Reference

A manipulator that specifies the length of String, Blob, and array values to be subsequently encoded/decoded. More...

#include <DataEncoder.h++>

Inheritance diagram for DataEncoder::SetLength:
Collaboration diagram for DataEncoder::SetLength:

Public Member Functions

 SetLength (size_t length)
 Construct a new SetLength manipulator. More...
 
 ~SetLength ()
 Destructor. More...
 

Protected Member Functions

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

Detailed Description

A manipulator that specifies the length of String, Blob, and array values to be subsequently encoded/decoded.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ SetLength()

SetLength ( size_t  length)

Construct a new SetLength manipulator.

Parameters
lengthThe string length.

◆ ~SetLength()

~SetLength ( )

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: