A manipulator that specifies the maximum number of bytes that can be read/written. More...
#include <DataEncoder.h++>

Public Member Functions | |
| SetLimit (int64_t limit) throw () | |
| Construct a new SetLimit manipulator. | |
| ~SetLimit () throw () | |
| Destructor. | |
Protected Member Functions | |
| void | apply (DataEncoder &encoder) const throw (IOException) |
| Apply the DataManipulator to a DataEncoder. | |
A manipulator that specifies the maximum number of bytes that can be read/written.
Attempts to read/write past this limit will raise an IOException.
| SetLimit | ( | int64_t | limit | ) | throw () |
Construct a new SetLimit manipulator.
| limit | The limit, in bytes. A value of 0 indicates no limit. |
| ~SetLimit | ( | ) | 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