Class::Generate 1.09

Class::Generate 1.09

Sponsored Links

Class::Generate 1.09 Ranking & Summary

Ranking Click at the star to rankRanking level:
User Review: 0 (0 times) Download now
File size: 0.052 MB Platform: Any Platform License: Perl Artistic License Price: Downloads: 5355 Date added: 2007-07-31 Publisher: Steven Wartik Publisher URL: http://search.cpan.org/~s

Class::Generate 1.09 description

Class::Generate is a Perl module that can generate Perl class hierarchies.

SYNOPSIS

use Class::Generate qw(class subclass delete_class);

# Declare class Class_Name, with the following types of members:
class
Class_Name => [
s => $, # scalar
a => @, # array
h => %, # hash
c => Class, # Class
c_a => @Class, # array of Class
c_h => %Class, # hash of Class
&m => body, # method
];

# Allocate an instance of class_name, with members initialized to the
# given values (pass arrays and hashes using references).
$obj = Class_Name->new ( s => scalar,
a => [ values ],
h => { key1 => v1, ... },
c => Class->new,
c_a => [ Class->new, ... ],
c_h => [ key1 => Class->new, ... ] );

# Scalar type accessor:
$obj->s($value); # Assign $value to member s.
$member_value = $obj->s; # Access members value.

# (Class) Array type accessor:
$obj->a([value1, value2, ...]); # Assign whole array to member.
$obj->a(2, $value); # Assign $value to array member 2.
$obj->add_a($value); # Append $value to end of array.
@a = $obj->a; # Access whole array.
$ary_member_value = $obj->a(2); # Access array member 2.
$s = $obj->a_size; # Return size of array.
$value = $obj->last_a; # Return last element of array.

# (Class) Hash type accessor:
$obj->h({ k_1=>v1, ..., k_n=>v_n }) # Assign whole hash to member.
$obj->h($key, $value); # Assign $value to hash member $key.
%hash = $obj->h; # Access whole hash.
$hash_member_value = $obj->h($key); # Access hash member value $key.
$obj->delete_h($key); # Delete slot occupied by $key.
@keys = $obj->h_keys; # Access keys of member h.
@values = $obj->h_values; # Access values of member h.

$another = $obj->copy; # Copy an object.
if ( $obj->equals($another) ) { ... } # Test equality.

subclass s => [ ], -parent => class_name;

The Class::Generate package exports functions that take as arguments a class specification and create from these specifications a Perl 5 class. The specification language allows many object-oriented constructs: typed members, inheritance, private members, required members, default values, object methods, class methods, class variables, and more.

CPAN contains similar packages. Why another? Because object-oriented programming, especially in a dynamic language like Perl, is a complicated endeavor. I wanted a package that would work very hard to catch the errors you (well, I anyway) commonly make. I wanted a package that could help me enforce the contract of object-oriented programming. I also wanted it to get out of my way when I asked.

Download now

Class::Generate 1.09 Screenshot

Sponsored Links
Download Class::Generate 1.09

Class::Generate 1.09 Keywords

Bookmark Class::Generate 1.09

Hyperlink code:
Hyperlink and Intro code:

Class::Generate 1.09 Copyright

WareSeeker periodically updates pricing and software information of Class::Generate 1.09 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::Generate 1.09 Edition. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Class::Generate 1.09 Related Software


TinyButStrong is a template class for PHP that allows you to generate HTML pages using MySQL, PostgreSQL.

PyHtmlTable is a class for Python CGIs to generate HTML tables on the fly.

PHP Date Picker Class will automatically generate the required HTML and JavaScript code.

Class::DBI::Plugin::FilterOnClick is a Perl module to generate browsable and searchable HTML Tables.

Class::DBI::Plugin::HTML is Perl module to generate HTML Tables and Forms in conjunction with Class::DBI.

PHP JavaScript Tooltip Generator Class is a PHP class that can generate JavaScript tooltips.

Class::Driver is a Perl module to generate driver ("composite") class hierarchies on-the-fly.

Class::Adapter::Builder is a Perl module that can generate Class::Adapter classes.

PHP Advanced Graphing Class is a PHP class that can be used to generate line, bar, and 2D/3D pie graphs.

lMaker is a php class designed for web masters and programmers who want a simple way to generate web sites.
Class::Generate 1.09 Review:
Author name* :  
Author Email* :  
Comment* :  
Security code* :  
     
   
My Software
You have not saved any software. Click "Save" next to each software to save it to your software basket
Related Information
Sponsored Links
TOP POPULAR DOWNLOAD