NAME

ZMQ::Declare::ZDCF::Encoder - ZDCF encoder base class

SYNOPSIS

use ZMQ::Declare;

DESCRIPTION

Abstract base class for ZDCF encoders/decoders.

METHODS

encode

Not implemented in base class.

Expects the data structure to encode as first argument. The data structure is assumed to be a valid ZDCF tree.

Returns a reference to a scalar containing the ZDCF encoded as a string.

decode

Not implemented in base class.

Expects a reference to a scalar containing the string to decode. Decodes the string and returns a ZDCF tree (unvalidated).

SEE ALSO

The ZDCF RFC http://rfc.zeromq.org/spec:5

ZeroMQ

AUTHOR

Steffen Mueller <smueller@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2012 by Steffen Mueller

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or, at your option, any later version of Perl 5 you may have available.