Thrift::Parser::FieldSet - A set of fields in a structure
Returns an array ref of all the fields in this set.
my $value = $field_set->named('id');
Searches the fields in the set for the field named $name. Returns the value of that field.
my $value = $field_set->id(2);
Searches the fields in the set for the field with id $id. Returns the value of that field.
Returns an array ref of the ids of this field set.
Returns an array ref of the values of the fields in the set.
Returns a hashref where the keys are the names of the fields and the values are the values of the fields.
Returns a hashref where the keys are the names of the fields and the values are the plain values of the fields.
Used internally by Thrift::Parser::Method and Thrift::Parser::Struct. Given a list of key/value pairs, returns a FieldSet object informed by the IDL.
Copyright (c) 2009 Eric Waters and XMission LLC (http://www.xmission.com/). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Eric Waters <ewaters@gmail.com>
To install Thrift::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Thrift::Parser
CPAN shell
perl -MCPAN -e shell install Thrift::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.