RFID::LLRP::Schema


SYNOPSIS

Contains various facilities for dealing with LLRP schemas


DESCRIPTION

Produces LLRP schema objects. It is safe to create as many of these as you need... only one object is created (and cached) per filename string.


PRACTICAL EXAMPLE

        use RFID::LLRP::Schema;
        my ($llrp, $lookup_msg, $lookup_param, $lookup_enum) =
                 read_schema ('./ReaderDef.xml');


DETAILS


API

read_schema($path)

Returns a reference to the llrp binary format descriptor hash, and references to message, parameter and enumeration lookup tables.

The best way to understand these data structures is to print them using Data::Dumper. Builder.pm just peers directly into these tables as a ``layer'' and it seems hard, inefficient and more importantly, pointless (tight coupling with a layered API or tight coupling with a data structure, any way you go you will still have tight coupling) to obfuscate it with an API. If the layout doesn't suit your needs, build additional indexing data structures.

read_schema returns

\%llrp a reference to the LLRP schema
\%registry A reference for looking up (mangled) LLRP types, including extensions


AUTHOR

John R. Hogerhuis Chris Delaney


BUGS

None


SEE ALSO

EPCGlobal LLRP Specification


COPYRIGHT

Copyright 2007, 2008 Impinj, Inc.

Licensed under the Apache License, Version 2.0 (the ``License''); you may not use this file except in compliance with the License. You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an ``AS IS'' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.