SetStringPadding Class Reference

A manipulator that enables or disables string padding. More...

#include <DataEncoder.h++>

Inheritance diagram for SetStringPadding:
Inheritance graph
[legend]
Collaboration diagram for SetStringPadding:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SetStringPadding (bool stringPadding) throw ()
 Construct a new SetStringPadding manipulator.
 ~SetStringPadding () throw ()
 Destructor.

Protected Member Functions

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

Detailed Description

A manipulator that enables or disables string padding.

When enabled, strings are padded with spaces during writing; otherwise they are padded with NUL bytes.

Author:
Mark Lindner

Constructor & Destructor Documentation

SetStringPadding ( bool  stringPadding  )  throw ()

Construct a new SetStringPadding manipulator.

Parameters:
stringPadding A flag indicating the type of padding; true for spaces, false for NUL bytes.
~SetStringPadding (  )  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 Fri Sep 3 23:49:35 2010 for libcommonc++ by  doxygen 1.6.3