Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

xmlcodec.cpp File Reference

Definitions of XmlCodec class methods. More...

#include "xmlcodec.h"

Go to the source code of this file.

Defines

#define DISPLAY_COMPRESSION_SUMMARY
 Display a brief compression summary. More...

#define DISPLAY_DECOMPRESSION_SUMMARY
 Display a brief decompression summary. More...


Detailed Description

Definitions of XmlCodec class methods.

This file contains the definitions of XmlCodec class methods.

Definition in file xmlcodec.cpp.


Define Documentation

#define DISPLAY_COMPRESSION_SUMMARY
 

Value:

{                                                                                       \
  OUTPUTENL("Compression performance");                                                 \
  OUTPUTENL("  Input data size: \t\t\t" << parseResult << " B");                        \
  double outSize = arithCodec->numberOfOutputBytes() + strlen(VERSION) + 2*SIZEOF_CHAR; \
  OUTPUTENL("  Output data size: \t\t\t" << outputDevice->bytesWritten() << " B");      \
  OUTPUTENL("  Compression ratio: \t\t\t1:" << (double)(outSize)/parseResult            \
            << " (" << (double)(outSize*100)/parseResult << "%)");                      \
  OUTPUTENL("  Compression rate: \t\t\t" << (outSize / parseResult) * 8 << " bpc");     \
}
Display a brief compression summary.

Definition at line 35 of file xmlcodec.cpp.

Referenced by XmlCodec::encode, and XmlCodec::encodePush.

#define DISPLAY_DECOMPRESSION_SUMMARY
 

Value:

{                                                                               \
  OUTPUTENL("Decompression performance");                                       \
  OUTPUTENL("  Input data size: \t\t\t" << inDevice->bytesRead() << " B");      \
  OUTPUTENL("  Restored data size: \t\t\t" << funnelDevice->bytesWritten()      \
            << " B (passed to the model for final processing)");                \
}
Display a brief decompression summary.

Definition at line 48 of file xmlcodec.cpp.

Referenced by XmlCodec::decode.


Generated on Wed Feb 5 10:43:03 2003 for Exalt by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002