Poco::FastInfoset

class DocumentRestrictedAlphabet

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

Description

Class DocumentRestrictedAlphabet stores the prefined simple vocabularies for numeric or date time de-/encoding.

Member Summary

Member Functions: add, alphabet, alphabets, index, operator -, value

Types

Alphabets

typedef std::vector < RestrictedAlphabet > Alphabets;

Constructors

DocumentRestrictedAlphabet

DocumentRestrictedAlphabet();

Creates the DocumentRestrictedAlphabet.

Destructor

~DocumentRestrictedAlphabet

~DocumentRestrictedAlphabet();

Destroys the DocumentRestrictedAlphabet.

Member Functions

add

Poco::UInt32 add(
    const Poco::XML::XMLString & str
);

Adds the string as a new vocabulary, returns the ids of the vocabulary, the maximum is limited to 256 vocabularies.

alphabet inline

RestrictedAlphabet & alphabet(
    Poco::UInt32 vocabulary
);

Returns the alphabet for the given id.

alphabets inline

const Alphabets & alphabets() const;

Returns all defined alphabets.

index inline

Poco::UInt32 index(
    Poco::UInt32 vocabulary,
    const Poco::XML::XMLChar & value
) const;

Returns the index for the given vocabulary and value.

operator -

DocumentRestrictedAlphabet operator - (
    const DocumentRestrictedAlphabet & other
);

Subtracts from this object other. the other vocabulary must be smaller than this alphabet

value inline

const Poco::XML::XMLChar & value(
    Poco::UInt32 vocabulary,
    Poco::UInt32 idxVal
) const;

Returns the value for the given vocabulary and index.

Variables

DATE_TIME_CHARACTERS static

static const Poco::XML::XMLString DATE_TIME_CHARACTERS;

NUMERIC_CHARACTERS static

static const Poco::XML::XMLString NUMERIC_CHARACTERS;