Library: FastInfoset
Package: CodingAlgorithm
Header: Poco/FastInfoset/UUIDEncoding.h
Performs encoding of uuid strings
Direct Base Classes: Encoding
All Base Classes: Encoding
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
UUIDEncoding(
const Poco::XML::XMLString & xmlStr
);
Creates the UUIDEncoding by parsing the string for UUID entries
UUIDEncoding(
const Poco::UUID & data
);
Creates the UUIDEncoding.
UUIDEncoding(
const std::vector < Poco::UUID > & data
);
Creates the UUIDEncoding.
virtual ~UUIDEncoding();
Destroys the UUIDEncoding.
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
void createContent();
static void encode(
BitStreamWriter & writer,
const Poco::XML::XMLString & str
);
Encoding::DecodeMethod getDecodeMethod() const;
Encoding::EncodeCheck getEncodeChecker() const;
Encoding::EncodeMethod getEncodeMethod() const;
void handle(
FISContentHandler * pHandler
);
See also: Poco::FastInfoset::Encoding::handle()
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()
static void parse(
const Poco::XML::XMLString & str,
std::vector < Poco::UUID > & data
);
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
static void read(
BitStreamReader & reader,
Poco::XML::XMLString & result
);
Returns all UUID strings space separated in one string
static void read(
BitStreamReader & reader,
std::vector < Poco::UUID > & result
);
static EncodingPtr read(
BitStreamReader & reader
);
Reads the encoded data
Poco::UInt32 type() const;
Returns the encoding type
See also: Poco::FastInfoset::Encoding::type()
void write(
BitStreamWriter & writer
);
See also: Poco::FastInfoset::Encoding::write()