Poco::FastInfoset

class BoolEncoding

Library: FastInfoset
Package: CodingAlgorithm
Header: Poco/FastInfoset/BoolEncoding.h

Description

Performs encoding of boolean values

Inheritance

Direct Base Classes: Encoding

All Base Classes: Encoding

Member Summary

Member Functions: canEncode, createContent, encode, getDecodeMethod, getEncodeChecker, getEncodeMethod, handle, merge, parse, read, type, write

Inherited Functions: createContent, getContent, getDecodeMethod, getEncodeChecker, getEncodeMethod, handle, merge, type, write

Constructors

BoolEncoding

BoolEncoding(
    bool val
);

Creates the BoolEncoding.

BoolEncoding

BoolEncoding(
    const std::vector < bool > & vals
);

Creates the BoolEncoding.

BoolEncoding

BoolEncoding(
    const Poco::XML::XMLString & vals
);

Creates the BoolEncoding.

Destructor

~BoolEncoding virtual

virtual ~BoolEncoding();

Destroys the BoolEncoding.

Member Functions

canEncode static

static Poco::Int32 canEncode(
    const Poco::XML::XMLString & str
);

If it can encode the string, it will return the size of the compressed data, otherwise a value <= 0

createContent virtual

void createContent();

See also: Poco::FastInfoset::Encoding::createContent()

encode static

static void encode(
    BitStreamWriter & writer,
    const Poco::XML::XMLString & str
);

getDecodeMethod inline

Encoding::DecodeMethod getDecodeMethod() const;

getEncodeChecker inline

Encoding::EncodeCheck getEncodeChecker() const;

getEncodeMethod inline

Encoding::EncodeMethod getEncodeMethod() const;

handle virtual

void handle(
    FISContentHandler * pHandler
);

See also: Poco::FastInfoset::Encoding::handle()

merge virtual

bool merge(
    const Encoding & enc
);

Merges the provided enc into the current one iff the two encoding types are identical

See also: Poco::FastInfoset::Encoding::merge()

parse static

static void parse(
    const Poco::XML::XMLString & str,
    std::vector < bool > & data
);

parses the string for the values "true and "false", single space chars are allowed between the values but not at the end or at the beginning, every error will result in an empty data return vector

read static

static void read(
    BitStreamReader & reader,
    Poco::XML::XMLString & result
);

read static

static EncodingPtr read(
    BitStreamReader & reader
);

Reads the encoded data

type virtual inline

Poco::UInt32 type() const;

Returns the encoding type

See also: Poco::FastInfoset::Encoding::type()

write virtual

void write(
    BitStreamWriter & writer
);

See also: Poco::FastInfoset::Encoding::write()

Variables

VAL_FALSE static

static const Poco::XML::XMLString VAL_FALSE;

VAL_TRUE static

static const Poco::XML::XMLString VAL_TRUE;