Main > Programming > Libraries >

Class::Simple 0.07

Class::Simple 0.07

Sponsored Links

Class::Simple 0.07 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.009 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 815
Date added: 2007-07-31
Publisher: Michael Sullivan

Class::Simple 0.07 description

Class::Simple is a simple Object-Oriented Base Class.

SYNOPSIS

package Foo:
use base qw(Class::Simple);

BEGIN
{
Foo->privatize(qw(attrib1 attrib2)); # ...or not.
}
my $obj = Foo->new();

$obj->attrib(1); # The same as...
$obj->set_attrib(1); # ...this.

my $var = $obj->get_attrib(); # The same as...
$var = $obj->attrib; # ...this.

$obj->raise_attrib(); # The same as...
$obj->set_attrib(1); # ...this.

$obj->clear_attrib(); # The same as...
$obj->set_attrib(undef); # ...this
$obj->attrib(undef); # ...and this.

$obj->readonly_attrib(4);

sub foo
{
my $self = shift;
my $value = shift;

$self->_foo($value);
do_other_things(@_);
...
}

my $str = $obj->DUMP;
my $new_obj = Foo->new();
$new_obj->SLURP($str);

sub BUILD
{
my $self = shift;

# Various initializations
}

There are plenty of others that are much more thorough and whatnot but sometimes I want something simple so I can get just going (no doubt because I am a simple guy) so I use this.

What do I mean by simple? First off, I dont want to have to list out all my methods beforehand. I just want to use them (Yeah, yeah, it doesnt catch typos--thats what testing and Class::Std are for :-). Next, I want to be able to call my methods by $obj->foo(1) or $obj->set_foo(1), by $obj->foo() or $obj->get_foo(). Dont tell ME I have to use get_ and set_ (I would just override that restriction in Class::Std anyway). Simple!

I did want some neat features, though, so these are inside-out objects (meaning the object isnt simply a hash so you cant just go in and muck with attributes outside of methods), privatization of methods is supported, as is serialization out and back in again.

Class::Simple 0.07 Screenshot

Advertisements

Class::Simple 0.07 Keywords

Bookmark Class::Simple 0.07

Hyperlink code:
Link for forum:

Class::Simple 0.07 Copyright

WareSeeker periodically updates pricing and software information of Class::Simple 0.07 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Class::Simple 0.07 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
CGI::Simple is a simple totally OO CGI interface that is CGI.pm compliant. Free Download
Class::XML is a Perl module for simple XML Abstraction. Free Download
Test::Simple is a Perl module with basic utilities for writing tests. Free Download
XML::SAX::Simple is a SAX version of XML::Simple. Free Download
Class::DataStore is a Perl module for generic OO data storage/retrieval. Free Download
Class::ObjectTemplate is a Perl extension for an optimized template builder base class. Free Download
Class::StrongSingleton is a stronger and more secure Singleton base class. Free Download
Class::HPLOO is an easier way to declare classes on Perl, based in the popular class {...} style and ePod. Free Download