The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Farly::ASA::ProtocolFormatter - Maps protocol string ID's and integers

DESCRIPTION

Farly::ASA::ProtocolFormatter is like an enum class, but not. ProtocolFormatter is device specific.

METHODS

new()

The constructor.

as_string( <protocol number> )

Returns a protcol name for the given protocol number.

as_integer( <protocol ID> )

Returns a protcol number for the given protocol ID.

COPYRIGHT AND LICENCE

Farly::ASA::ProtocolFormatter Copyright (C) 2012 Trystan Johnson

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.