Rogue Wave Views |
Rogue Wave Views Documentation Home |
Base PostScript encoder class. More...
#include <ilviews/util/psencode.h>
Public Member Functions | |
virtual | ~IlvPostScriptEncoder () |
Destructor. | |
virtual void | consumeByte (IlUChar byte)=0 |
Consumes a byte. More... | |
virtual void | consumeBytes (IlUInt count, IlUChar const *bytes) |
Consumes an array of bytes. The default implementation calls consumeByte for each byte in the array. More... | |
virtual void | emitByte (IlUChar byte) |
Emits a byte. More... | |
virtual void | emitBytes (IlUInt count, IlUChar const *bytes) |
Emits an array of bytes. More... | |
virtual void | flush () |
Flushes the processed data to the output. The default implementation does nothing. | |
IlvPostScriptEncoder * | getEmitter () const |
Return the emitter. More... | |
virtual const char * | getPostScriptDecoderName () const =0 |
Returns a string containing the PostScript decoding filter name. More... | |
ILVSTDPREF ostream * | getStream () const |
Return the stream used by this instance. More... | |
virtual void | init () |
Initializes the instance. The default implementation does nothing. | |
void | setEmitter (IlvPostScriptEncoder *emitter) |
Sets the emitter for this encoder. More... | |
virtual void | setStream (ILVSTDPREF ostream *stream) |
Sets the output stream used by this instance. More... | |
Static Public Member Functions | |
static IlString | GetFullDecoderString (const IlvPostScriptEncoder *pse) |
Returns the full string for an encoder. It takes into account the sub filters. More... | |
Protected Member Functions | |
IlvPostScriptEncoder (ILVSTDPREF ostream *stream=0) | |
Constructor. More... | |
Base PostScript encoder class.
Library: xviews or winviews or mviews (mutually exclusive)
This class allows you to encode binary data to another data representation in a PostScript compatible format. These encoders can only be used when using PostScript Level 2. Encoders can be chained.
See also IlvHexEncoder
, IlvASCII85Encoder
, IlvRunLengthEncoder
, IlvPSDevice
, IlvPSColorDevice
|
protected |
Constructor.
Initializes a new instance of IlvPostScriptEncoder
.
stream | the output stream used by this instance. |
|
pure virtual |
Consumes a byte.
byte | The received byte. |
Implemented in IlvRunLengthEncoder, IlvASCII85Encoder, and IlvASCIIHexEncoder.
Consumes an array of bytes. The default implementation calls consumeByte
for each byte in the array.
count | The number of bytes. |
bytes | A pointer to the first element in the array. |
|
virtual |
Emits a byte.
byte | The emitted byte. |
Emits an array of bytes.
The default implementation calls consumeByte
for each byte in the array.
count | The number of bytes. |
bytes | A pointer to the first element in the array. |
IlvPostScriptEncoder* IlvPostScriptEncoder::getEmitter | ( | ) | const |
Return the emitter.
|
static |
Returns the full string for an encoder. It takes into account the sub filters.
pse | A pointer to the PostScript encoder. |
|
pure virtual |
Returns a string containing the PostScript decoding filter name.
Implemented in IlvRunLengthEncoder, IlvASCII85Encoder, and IlvASCIIHexEncoder.
ILVSTDPREF ostream* IlvPostScriptEncoder::getStream | ( | ) | const |
Return the stream used by this instance.
void IlvPostScriptEncoder::setEmitter | ( | IlvPostScriptEncoder * | emitter | ) |
Sets the emitter for this encoder.
emitter | The new emitter. |
|
virtual |
Sets the output stream used by this instance.
stream | The new output stream. |
© Copyright 2015, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.