.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "EMBOSS::ACD 3pm" .TH EMBOSS::ACD 3pm "2018-10-09" "perl v5.26.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" EMBOSS::ACD \- parse EMBOSS ACD (AJAX Command Definition) files .SH "AUTHOR" .IX Header "AUTHOR" Luke McCarthy .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& use EMBOSS::ACD; \& \& $acd = EMBOSS::ACD\->new($acdfile); \& \& $application = $acd\->name; \& \& $description = $acd\->documentation; \& \& @groups = $acd\->groups; \& \& foreach $parameter ($acd\->param) { \& while (($attribute, $value) = each %$parameter) { \& ... \& } \& } .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\s-1EMBOSS::ACD\s0 parses \s-1EMBOSS\s0 Ajax Command Definition files and provides object-oriented access to the data contained therein. .PP For a complete specification of the \s-1ACD\s0 format, see http://emboss.sourceforge.net/developers/acd .PP Note that no checks are performed to ensure that the \s-1ACD\s0 file is semantically valid. Specifically, datatypes and attributes that aren't defined in the specification can occur in the file and will be parsed as normal. This is a good thing, as the module remains useful even if new datatypes are added by local developers or the \s-1EMBOSS\s0 crew. .PP Public methods are described below: .IP "new($acdfile)" 4 .IX Item "new($acdfile)" Parses the specified \s-1ACD\s0 file. Returns a new \s-1EMBOSS::ACD\s0 object on success, and dies on failure. .Sp \&\f(CW$acdfile\fR is the full path to a valid \s-1ACD\s0 file. .IP "\fIname()\fR" 4 .IX Item "name()" Returns the name of the application whose \s-1ACD\s0 file was parsed. .IP "\fIdocumentation()\fR" 4 .IX Item "documentation()" Returns a short description of the application whose \s-1ACD\s0 file was parsed. .IP "\fIgroups()\fR" 4 .IX Item "groups()" Returns a list of functional groups to which the application belongs. For a list of possible groups, see http://emboss.sourceforge.net/developers/acd/syntax.html#sect2214 .IP "param($param)" 4 .IX Item "param($param)" Returns a reference to a hash describing the specified parameter. The hash contains key-value pairs corresponding to the attributes specified in the \s-1ACD\s0 file, plus the keys 'name' and 'datatype'. The value of the 'datatype' key is the canonical name of the data type, regardless of any abbreviation in the \s-1ACD\s0 file. For a list of possible data types, see http://emboss.sourceforge.net/developers/acd/syntax.html#sect23 .Sp If no parameter is specified, a list of all parameters is returned. The members of the list are hash references as described above. .Sp Note that, in accordance with the \s-1ACD\s0 specification, attribute names are not expanded if they are abbreviated in the \s-1ACD\s0 file. .Sp \&\f(CW$param\fR is either undefined (see above) or the name of the desired parameter. .IP "canonical_datatype($datatype)" 4 .IX Item "canonical_datatype($datatype)" Returns the canonical name of the specified abbreviated datatype, or undefined if the abbreviation is ambiguous or not recognized. .SH "BUGS" .IX Header "BUGS" None that I know of... .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (c) 2004 Luke McCarthy. All rights reserved. This program is free software. You may copy or redistribute it under the same terms as Perl itself.