Poco::FastInfoset

class Utility

Library: FastInfoset
Package: FastInfoset
Header: Poco/FastInfoset/Utility.h

Description

The Utility class contains commonly used constants and helper methods.

Member Summary

Member Functions: convertToFIS, convertToXML

Enumerations

Anonymous

SIZEOFCHARINBIT = 8

SIZEOFINT16INBIT = 16

SIZEOFINT32INBIT = 32

SIZEOFINT64INBIT = 64

INVALIDINDEX = 0xffffffff u

Constructors

Destructor

~Utility protected

~Utility();

Destroys the Utility.

Member Functions

convertToFIS static

static void convertToFIS(
    std::istream & xmlInput,
    std::ostream & fisOutput
);

Converts an XML input stream into a FIS output stream, throws an exception if an error occurs while parsing the XML or writing the FIS document

convertToXML static

static void convertToXML(
    std::istream & fisInput,
    std::ostream & xmlOutput
);

Converts an FIS input stream into a XML output stream, throws an exception if an error occurs while parsing the FIS or writing the XML document

Variables

highBitMask static

static unsigned char highBitMask[];

A bitmask where the numBits highest bits are set to 1.

lowBitMask static

static unsigned char lowBitMask[];

A bitmask where the numBits lowest bits are set to 1.

pow2 static

static unsigned char pow2[];

A vector storing for pos x the value 2^x, x in range [0,7]

revertedPow2 static

static unsigned char revertedPow2[];

A vector storing for pos x the value 2^(7-x), x in range [0,7]