rwlogo

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
List of all members | Public Member Functions
IlvASCIIHexEncoder Class Reference

ASCII Hex encoder class. More...

#include <ilviews/util/psencode.h>

Inheritance diagram for IlvASCIIHexEncoder:
IlvPostScriptEncoder

Public Member Functions

 IlvASCIIHexEncoder (ILVSTDPREF ostream *stream=0, IlBoolean flush=IlTrue)
 
void consumeByte (IlUChar byte)
 Consumes a byte. More...
 
void flush ()
 Flushes the processed data to the output.
 
const char * getPostScriptDecoderName () const
 Returns a string containing the PostScript decoding filter name. More...
 
void init ()
 Initializes or reinitializes the instance.
 
- Public Member Functions inherited from IlvPostScriptEncoder
virtual ~IlvPostScriptEncoder ()
 Destructor.
 
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...
 
IlvPostScriptEncodergetEmitter () const
 Return the emitter. More...
 
ILVSTDPREF ostream * getStream () const
 Return the stream used by this instance. More...
 
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...
 

Additional Inherited Members

- Static Public Member Functions inherited from IlvPostScriptEncoder
static IlString GetFullDecoderString (const IlvPostScriptEncoder *pse)
 Returns the full string for an encoder. It takes into account the sub filters. More...
 
- Protected Member Functions inherited from IlvPostScriptEncoder
 IlvPostScriptEncoder (ILVSTDPREF ostream *stream=0)
 Constructor. More...
 

Detailed Description

ASCII Hex encoder class.

Library: xviews or winviews or mviews (mutually exclusive)

This class allows you to encode binary data to data in ASCII hexadecimal representation. This format implies an expansion factor of 2 for the encoded data.

See also IlvPostScriptEncoder, IlvRunLengthEncoder, IlvASCII85Encoder, IlvPSDevice, IlvPSColorDevice

Constructor & Destructor Documentation

IlvASCIIHexEncoder::IlvASCIIHexEncoder ( ILVSTDPREF ostream *  stream = 0,
IlBoolean  flush = IlTrue 
)

Constructor. Initializes a new instance of IlvASCIIHexEncoder.

Parameters
streamThe output stream used by this instance.
flushThe character > is generated when flushing.

Member Function Documentation

void IlvASCIIHexEncoder::consumeByte ( IlUChar  byte)
virtual

Consumes a byte.

Parameters
byteThe received byte.

Implements IlvPostScriptEncoder.

const char* IlvASCIIHexEncoder::getPostScriptDecoderName ( ) const
virtual

Returns a string containing the PostScript decoding filter name.

Returns
The string "/ASCIIHexDecode".

Implements IlvPostScriptEncoder.


© 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.