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

NML.cpp File Reference


Detailed Description

NML class.

handling of NML (news markup language for Journaline) data

Author:
Michael Reichenbächer <rbr@iis.fraunhofer.de>
Id:
NML.cpp,v 1.5 2004/03/12 15:31:08 rbr Exp

Module: Journaline(R)

Copyright: (C) 2003-2004 by Fraunhofer IIS-A, IT-Services, Erlangen

Compiler: gcc version 3.3 20030226 (prerelease) Microsoft Visual C++ .NET

#include "NML.h"
#include "Splitter.h"
#include "zlib.h"
#include "cpplog.h"

Functions

int Inflate (unsigned char *dest, unsigned long *destLen, const unsigned char *source, unsigned long sourceLen)
 for decompressing deflated (RFC1951) data

std::string DumpRaw (const NML::RawNewsObject_t &rno)
 dump raw NML object

bool operator== (const NML::Item_t &lhs, const NML::Item_t &rhs)
 comparison operator for NML menu/list items

std::string HexDump (const char *p, unsigned int len, unsigned int bytes_per_line)
 hexadecimal dump of field of unsigned chars

std::string HexDump (const unsigned char *p, unsigned int len, unsigned int bytes_per_line)
 hexadecimal dump of field of unsigned chars


Function Documentation

std::string DumpRaw const NML::RawNewsObject_t   rno
 

dump raw NML object

Parameters:
rno  raw NML news object
Returns :
dump of NML object as string

std::string HexDump const unsigned char *    p,
unsigned int    len,
unsigned int    bytes_per_line
 

hexadecimal dump of field of unsigned chars

Parameters:
p  field
len  length of field
bytes_per_line  how many hexadecimal bytes should be displayed on one line of the hexdump
Returns :
hexdump as string

std::string HexDump const char *    p,
unsigned int    len,
unsigned int    bytes_per_line
 

hexadecimal dump of field of unsigned chars

Parameters:
p  field
len  length of field
bytes_per_line  how many hexadecimal bytes should be displayed on one line of the hexdump
Returns :
hexdump as string

int Inflate unsigned char *    dest,
unsigned long *    destLen,
const unsigned char *    source,
unsigned long    sourceLen
[static]
 

for decompressing deflated (RFC1951) data

Parameters:
dest  where to store decompressed data
destLen  maximum number of bytes of decompressed data
source  compressed (deflated) data
sourceLen  length of compressed data
Return values:
Z_OK  iff source was inflated successfully

bool operator== const NML::Item_t   lhs,
const NML::Item_t   rhs
 

comparison operator for NML menu/list items

Parameters:
lhs  left hand side of NML object comparison
rhs  right hand side of NML object comparison
Return values:
true  NML objects are equal


Generated on Thu Mar 18 13:10:33 2004 for journaline_demo by doxygen1.2.17