Class::Std 0.0.8
Sponsored Links
Class::Std 0.0.8 Ranking & Summary
File size:
0.030 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1128
Date added:
2006-09-26
Publisher:
Damian Conway
Class::Std 0.0.8 description
Class::Std is a Perl module to support for creating standard "inside-out" classes.
SYNOPSIS
package MyClass;
use Class::Std;
# Create storage for object attributes...
my %name : ATTR;
my %rank : ATTR;
my %snum : ATTR;
my %public_data : ATTR;
# Handle initialization of objects of this class...
sub BUILD {
my ($self, $obj_ID, $arg_ref) = @_;
$name{$obj_ID} = check_name( $arg_ref->{name} );
$rank{$obj_ID} = check_rank( $arg_ref->{rank} );
$snum{$obj_ID} = _gen_uniq_serial_num();
}
# Handle cleanup of objects of this class...
sub DEMOLISH {
my ($self, $obj_ID) = @_;
_recycle_serial_num( $snum{$obj_ID} );
}
# Handle unknown method calls...
sub AUTOMETHOD {
my ($self, $obj_ID, @other_args) = @_;
# Return any public data...
if ( m/A get_(.*)/ ) { # Method name passed in $_
my $get_what = $1;
return sub {
return $public_data{$obj_ID}{$get_what};
}
}
warn "Cant call $method_name on ", ref $self, " object";
return; # The call is declined by not returning a sub ref
}
This module provides tools that help to implement the "inside out object" class structure in a convenient and standard way.
SYNOPSIS
package MyClass;
use Class::Std;
# Create storage for object attributes...
my %name : ATTR;
my %rank : ATTR;
my %snum : ATTR;
my %public_data : ATTR;
# Handle initialization of objects of this class...
sub BUILD {
my ($self, $obj_ID, $arg_ref) = @_;
$name{$obj_ID} = check_name( $arg_ref->{name} );
$rank{$obj_ID} = check_rank( $arg_ref->{rank} );
$snum{$obj_ID} = _gen_uniq_serial_num();
}
# Handle cleanup of objects of this class...
sub DEMOLISH {
my ($self, $obj_ID) = @_;
_recycle_serial_num( $snum{$obj_ID} );
}
# Handle unknown method calls...
sub AUTOMETHOD {
my ($self, $obj_ID, @other_args) = @_;
# Return any public data...
if ( m/A get_(.*)/ ) { # Method name passed in $_
my $get_what = $1;
return sub {
return $public_data{$obj_ID}{$get_what};
}
}
warn "Cant call $method_name on ", ref $self, " object";
return; # The call is declined by not returning a sub ref
}
This module provides tools that help to implement the "inside out object" class structure in a convenient and standard way.
Class::Std 0.0.8 Screenshot
Class::Std 0.0.8 Keywords
ID
ATTR
Std 0.0.8
to support
Perl module
OBJ
name
sub
standard
module
support
Class::Std
ClassStd
Class::Std 0.0.8
Libraries
Programming
Bookmark Class::Std 0.0.8
Class::Std 0.0.8 Copyright
WareSeeker periodically updates pricing and software information of Class::Std 0.0.8 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::Std 0.0.8 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
perl modules
install perl module
installing perl module
xml parser perl module
name definitions
atrpms perl module helper
baby names
perl module tutorial
module master
standard times
namenda
objetivo fama
name meanings
standard chartered
lunar module
name tags
obamau0027s secret service code names
net ssleay perl module
Related Software
Class::Std::Utils is a Perl module for utility subroutines for building "inside-out" objects. Free Download
Class::Std::Storable is a Perl module to support for creating serializable "inside-out" classes. Free Download
Class::Simple is a simple Object-Oriented Base Class. Free Download
Class::InsideOut is a Perl module with a safe, simple inside-out object construction kit. Free Download
Class::Accessor::Named is a great way to automate the tedious task of generating accessors and mutators. Free Download
APL project is a general purpose C++ template class library. Free Download
Class::Meta::Express is a Perl module for concise, expressive creation of Class::Meta classes. Free Download
Net::CSTA project is a perl-module for talking to an ECMA CSTA Phase I server. Free Download
Latest Software
Popular Software
Favourite Software