Finnigan::GenericDataHeader -- a decoder for GenericDataHeader -- a key to decoding generic data records
use Finnigan; my $h = Finnigan::GenericDataHeader->decode(\*INPUT); say $h->n; say $h->dump;
GenericDataHeader drives the decoding of a generic record. It stores a list of GenericDataDescriptor objects, each describing a field in the record.
The constructor method
Get the number of fields in each record
Get the list of Finnigan::GenericDataDescriptor objects. Each descriptor object corresponds to a field in the GenericRecord structure to be decoded with this header.
Get the list of descriptor labels in the order they occur in the header
Get the list of unpack templates for the entire record in the form that can be passed to Finnigan::Decoder.
Get the list of unpack templates whose keys are tagged with ordinal numbers to disambiguate possible duplicate keys and to preserve the order of fields. This is necessary for decoding the InstrumentLogRecord structures.
Finnigan::GenericDataDescriptor
Finnigan::GenericRecord
Gene Selkov, <selkovjr@gmail.com>
Copyright (C) 2010 by Gene Selkov
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
To install Finnigan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finnigan
CPAN shell
perl -MCPAN -e shell install Finnigan
For more information on module installation, please visit the detailed CPAN module installation guide.