A manipulator that enables or disables string padding. More...
#include <DataEncoder.h++>


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. | |
A manipulator that enables or disables string padding.
When enabled, strings are padded with spaces during writing; otherwise they are padded with NUL bytes.
| SetStringPadding | ( | bool | stringPadding | ) | throw () |
Construct a new SetStringPadding manipulator.
| stringPadding | A flag indicating the type of padding; true for spaces, false for NUL bytes. |
| ~SetStringPadding | ( | ) | throw () |
Destructor.
| void apply | ( | DataEncoder & | encoder | ) | const throw (IOException) [protected, virtual] |
Apply the DataManipulator to a DataEncoder.
| encoder | The target DataEncoder. |
| IOException | If an I/O error occurs. |
Implements Manipulator.
1.6.3