rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvRunLengthEncoder Class Reference

RunLength encoder class. More...

#include <ilviews/util/psencode.h>

Inheritance diagram for IlvRunLengthEncoder:
IlvPostScriptEncoder

List of all members.

Public Member Functions

 IlvRunLengthEncoder (ostream *stream=0)
 Constructor.
 ~IlvRunLengthEncoder ()
 Destructor.
void consumeByte (IlUChar byte)
 Consumes a byte.
void flush ()
 Flushes the processed data to the output.
const char * getPostScriptDecoderName () const
 Returns a string containing the PostScript decoding filter name.
void init ()
 Initializes or reinitializes the instance.

Detailed Description

RunLength encoder class.

Library: display

This class allows you to encode binary data to data in a run length encoded binary description. NOT YET IMPLEMENTED, just writes runs of 1. The generated data is a sequence of runs, each run consists of a length byte followed by 1 to 127 bytes of data. If the length byte is in the range 0 to 127, the following lenght + 1 byte (1 to 128 bytes) are to be copied literally upon decompression. if length is in the range 129 to 255, the following single byte is to be replicated 257 - length (2 to 128 times) upon decompression.

See also IlvPostScriptEncoder, IlvASCIIHexEncoder, IlvASCII85Encoder, IlvPSDevice, IlvPSColorDevice


Constructor & Destructor Documentation

IlvRunLengthEncoder::IlvRunLengthEncoder ( ostream *  stream = 0  ) 

Constructor.

Initializes a new instance of IlvASCII85Encoder.

Parameters:
stream The output stream used by this instance.
IlvRunLengthEncoder::~IlvRunLengthEncoder (  ) 

Destructor.

Flushes all remaining data.


Member Function Documentation

void IlvRunLengthEncoder::consumeByte ( IlUChar  byte  )  [virtual]

Consumes a byte.

Parameters:
byte The received byte.

Implements IlvPostScriptEncoder.

const char* IlvRunLengthEncoder::getPostScriptDecoderName (  )  const [virtual]

Returns a string containing the PostScript decoding filter name.

Returns:
The string "/RunLengthDecode".

Implements IlvPostScriptEncoder.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© Copyright 2012, 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.