Poco::FastInfoset

class UUIDEncoding

File Information

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

Description

This class implements the Fast Infoset encoding for UUID values.

Inheritance

Direct Base Classes: Encoding

All Base Classes: Encoding, Poco::RefCountedObject

Member Summary

Member Functions: check, checkMethod, createContent, decode, decodeMethod, encode, encodeMethod, handle, merge, parse, type, write

Inherited Functions: checkMethod, content, createContent, decodeMethod, duplicate, encodeMethod, handle, merge, referenceCount, release, type, write

Constructors

UUIDEncoding

explicit UUIDEncoding(
    const std::string & data
);

Creates the UUIDEncoding by parsing the string for UUID entries.

UUIDEncoding

explicit UUIDEncoding(
    const Poco::UUID & data
);

Creates the UUIDEncoding using the given UUID.

UUIDEncoding

explicit UUIDEncoding(
    const std::vector < Poco::UUID > & data
);

Creates the UUIDEncoding using the given data.

Destructor

~UUIDEncoding virtual

~UUIDEncoding();

Destroys the UUIDEncoding.

Member Functions

check static

static Poco::Int32 check(
    const std::string & str
);

checkMethod inline

Encoding::CheckMethod checkMethod() const;

createContent virtual

void createContent();

decode static

static void decode(
    BitStreamReader & reader,
    std::string & result
);

decode static

static void decode(
    BitStreamReader & reader,
    std::vector < Poco::UUID > & result
);

decode static

static Encoding::Ptr decode(
    BitStreamReader & reader
);

decodeMethod inline

Encoding::DecodeMethod decodeMethod() const;

encode static

static void encode(
    BitStreamWriter & writer,
    const std::string & str
);

Parses the string for UUID values, 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.

encodeMethod inline

Encoding::EncodeMethod encodeMethod() const;

handle virtual

void handle(
    FISContentHandler * pHandler
) const;

merge virtual

bool merge(
    const Encoding & enc
);

parse static

static void parse(
    const std::string & str,
    std::vector < Poco::UUID > & data
);

type virtual inline

Poco::UInt32 type() const;

write virtual

void write(
    BitStreamWriter & writer
) const;

Securely control IoT edge devices from anywhere   Connect a Device