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 SetLength:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

Protected Member Functions

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

Detailed Description

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

Depending on whether string padding is enabled or disabled, encoded strings will be padded with either space characters or NUL bytes, respectively.

Author:
Mark Lindner

Constructor & Destructor Documentation

SetLength ( size_t  length  )  throw ()

Construct a new SetLength manipulator.

Parameters:
length The string length.
~SetLength (  )  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 Nov 26 16:49:08 2011 for libcommonc++ by  doxygen 1.6.3