Net::ACL::Set - Abstract parent class of Set-classes


Net-ACL documentation  | view source Contained in the Net-ACL distribution.

Index


NAME

Top

Net::ACL::Set - Abstract parent class of Set-classes

SYNOPSIS

Top

    package Net::ACL::SetMyPackage;

    use Net::ACL::Set;
    @ISA     = qw( Net::ACL::Set );

    sub new { ... };
    sub set { ... };




    package main;

    # Construction
    my $set = new Net::ACL::SetMyPackage($args);

    # Accessor Methods
    @data = $set->set(@data);

DESCRIPTION

Top

This is an abstract parent class for all Net::ACL::Set* classes. It is used by the Net::ACL::Rule object.

It only has a constructor new() and a method set(). Both should be replaced in any ancestor object.

CONSTRUCTOR

Top

4 new() - Constructor of Net::ACL::Set* objects
    my $set = new Net::ACL::SetMyPackage($args);

This is the constructor for Net::ACL::Set::* objects. It returns a reference to the newly created object. It takes one argument, which should describe what to set.

ACCESSOR METHODS

Top

set()

This function should modify the data given as arguments (one or more) with the data passed to the constructor and return the modified data.

SEE ALSO

Top

Net::ACL::Rule, Net::ACL, Net::ACL::Set::Scalar, Net::ACL::Set::Union, Net::ACL::Set::Add

AUTHOR

Top

Martin Lorensen <bgp@martin.lorensen.dk>


Net-ACL documentation  | view source Contained in the Net-ACL distribution.