Gene Selkov, Jr. > Finnigan > Finnigan::GenericRecord

Download:
Finnigan-0.0206d.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.0206   Source  

NAME ^

Finnigan::GenericRecord -- a decoder for data structures defined by GenericDataHeader

SYNOPSIS ^

  use Finnigan;
  my $record = Finnigan::GenericRecord->decode(\*INPUT, $header);

DESCRIPTION ^

Finnigan::GenericRecord is a pass-through decorder that only passes the field definitions it obtains from the header (Finnigan::GenericDataHeader) to Finnigan::Decoder.

Because Thermo's GenericRecord objects are odered and may have "virtual" gaps and section titles in them, the Finnigan::Decoder's method of stashing the decoded data into a hash is not directly applicable. A GenericRecord may have duplicate keys and the key order needs to be preserved. That is why Finnigan::GenericRecord relies on the field_templates method of Finnigan::GenericDataHeader to insert ordinal numbers into the keys.

METHODS

decode

The constructor method

SEE ALSO ^

Finnigan::GenericDataHeader

Finnigan::GenericDataDescriptor

AUTHOR ^

Gene Selkov, <selkovjr@gmail.com>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: