Class::ObjectTemplate
Details
| Size: | 6K |
| Last Update: | 2008-05-17 01:33:04 |
| Version: | 0.7 |
| OS Support: | Linux |
| License/Program Type: | Perl Artistic License |
| Publisher: | Jason E. Stewart |
| Price: | $0.00 |
Description:
Class::ObjectTemplate 0.7 is libraries software developed by Jason E. Stewart.
Class::ObjectTemplate is a Perl extension for an optimized template builder base class.
SYNOPSIS
package Foo;
use Class::ObjectTemplate;
require Exporter;
@ISA = qw(Class::ObjectTemplate Exporter);
attributes('one', 'two', 'three');
initialize will be called by new()
sub initialize {
my $self = shift;
$self->three(1) unless defined $self->three();
}
use Foo;
$foo = Foo->new();
store 27 in the 'one' attribute
$foo->one(27);
check the value in the 'two' attribute
die "should be undefined" if defined $foo->two();
set using the utility method
$foo->set_attribute('one',27);
check using the utility method
$two = $foo->get_attribute('two');
set more than one attribute using the named parameter style
$foo->set_attributes('one'=>27, 'two'=>42);
or using array references
$foo->set_attributes(['one','two'],[27,42]);
get more than one attribute
@list = $foo->get_attributes('one', 'two');
get a list of all attributes known by an object
@attrs = $foo->get_attribute_names();
check that initialize() is called properly
die "initialize didn't set three()" unless $foo->three();
Class::ObjectTemplate is a utility class to assist in the building of other Object Oriented Perl classes.
It was described in detail in the O'Reilly book, "Advanced Perl Programming" by Sriram Srinivasam.
Requirements:
Perl
Class::ObjectTemplate 0.7 supports english interface languages and works with Linux.
Downloading Class::ObjectTemplate 0.7 will take several seconds if you use fast ADSL connection.
0 comments
Add to
Class::ObjectTemplate Version History
Related Software
|
|
From category: Libraries |
| Bio::NEXUS 0.66 is libraries software developed by Arlin Stoltzfus. Bio::NEXUS is a Perl module providing an object-oriented, Perl-based applications programming interface (API). NEXUS is a... |
|
|
From category: Libraries |
| eOSD 0.1.0 is libraries software developed by Tilman Sauerbeck. eOSD is a library for drawing anti-aliased text in an \"on-screen display\" way. eOSD is the \"enlightened on-screen display\"... |
|
|
From category: Libraries |
| libmemcached is a C client library to the memcached server.... |
|
|
From category: Assembler-Tools |
| Access Modifier Eclipse Plug-in 1.2.6 is assembler tools software developed by Nils Winkler. Access Modifier Eclipse Plug-in allows the user to change the visibility (public, protected, default, pr... |
|
|
From category: Libraries |
| Bio::Tools::Run::PiseApplication::charge 1.4 is libraries software developed by Catherine Letondal. Bio::Tools::Run::PiseApplication::charge is a Perl module. Bio::Tools::Run::PiseApplicatio... |
|
|
From category: Libraries |
| Alien::wxWidgets 0.21 is libraries software developed by Mattia Barbon. Alien::wxWidgets is a Perl module for building, finding and using wxWidgets binaries. SYNOPSIS use Alien::w... |
|
|
From category: Libraries |
| Archive::Rar 1.9 is libraries software developed by Jean-Marc Boulade. Archive::Rar is a interface with the \'rar\' command. SYNOPSIS use Archive::Rar; my $rar =new Archive::Rar(... |
|
|
From category: Libraries |
| App::Context 0.964 is libraries software developed by Stephen Adkins. App::Context is an application framework for web applications, command-line programs, server programs, and web services. \... |
|
|
From category: Bug-Tracking |
| Bluetail Ticket Tracker 4.0.2 is bug tracking software developed by Torbjorn Tornkvist. The Bluetail Ticket Tracker (BTT) is a system for creating, storing and keeping track of tickets. A ticket de... |
|
|
From category: Libraries |
| Audio::Wav::Read 0.06 is libraries software developed by Nick Peskett. Audio::Wav::Read is a Perl module for reading Microsoft WAV files. SYNOPSIS use Audio::Wav; my $wav =... |
|
|
From category: Libraries |
| Audio::Play 1.029 is libraries software developed by Nick Ing-Simmons. Audio::Play is an interface for Audio::Data to hardware. SYNOPSIS use Audio::Data; use Audio::Play;... |
|
|
From category: Libraries |
| Visualization Library - your personal 3D visualization expert!... |
|
|
From category: Libraries |
| libgfileio is a C++ library that wraps around the standard unbuffered Unix file I/O functions write() and read().... |
|
|
From category: Libraries |
| fb_mhash 1.2 is libraries software developed by Richard Kotal. fb_mhash is a UDF library for Firebird/Interbase. fb_mhash implements an interface to the mhash library (libmhash). It support... |
|
|
From category: Libraries |
| Conjury::C::Sun 1.004 is libraries software developed by James Woodyatt. Conjury::C::Sun is a Perl Conjury with the Sun Workshop C/C++ tools. SYNOPSIS c_compiler Vendor => \'Sun\',\... |
Leave a comment