OOP is a object-oriented programming class.
SYNOPSIS
# Illustrates how to define a prototype, how the
# parameters are passed, and how to access the
# processed parameters.
use OOP;
# These are the parameters normally passed
# to a class using OOP.pm.
my $classPrototype = {
one => 1,
two => 2,
three => {
hi => {
dataType => 'hash',
allowEmpty => 0,
maxLength => 3,
minLength => 1,
readAccess => 1,
required => 1,
value => {
bye => '',
ebye => {
dataType => 'scalar',
allowEmpty => 0,
maxLength => 8,
minLength => 1,
readAccess => 0,
required => 0,
value => '',
writeAccess => 1
}
},
writeAccess => 1
}
}
};
# These are the parameters normally passed
# to a class using OOP.pm.
my $objectProperties = {
one => 1,
two => 2,
three => {
hi => {
bye => '12345678'
}
}
};
my $obj = OOP->new({
ARGS=> $objectProperties,
PROTOTYPE => $classPrototype
});
print $obj->{PROPERTIES}->{three}{hi}{bye} . "n";
print $obj->getProperty($obj->{PROPERTIES}->{three}{hi}{bye}) . "n";
ABSTRACT
This class is intended to complement Object Oriented Programming ("OOP") development by offering solutions to common problems in the OOP world. If not problems then this class will also attempt to facilitate various OOP related tasks and ensure that various conventions are followed, where possible. It provides a developer with various methods that enforce uniform OOP conventions and ensure sound OOP development in PERL.
Simply stated, this class attempts to take out as much of the OOP overhead for the developer as possible while at the same time allowing a developer to write more robust applications.
Product's homepage
Requirements:
· Perl