constructor
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 305
Raw Socket Constructor 2.1a
Raw Socket Constructor provides a tool for sending packets from the console. more>>
Raw Socket Constructor provides a tool for sending packets from the console.
Raw Socket Constructor is a tool that uses the Libsock library to create arbitrary TCP, ICMP, UDP, TCP6, ICMP6, or UDP6 packets.
<<lessRaw Socket Constructor is a tool that uses the Libsock library to create arbitrary TCP, ICMP, UDP, TCP6, ICMP6, or UDP6 packets.
Download (0.008MB)
Added: 2007-03-22 License: GPL (GNU General Public License) Price:
950 downloads
Boa Constructor 0.2.3 Alpha
Boa Constructor is a cross platform Python IDE and wxPython GUI Builder. more>>
Boa Constructor is a cross platform Python IDE and wxPython GUI Builder. It offers visual frame creation and manipulation, an object inspector, many views on the source like object browsers, inheritance hierarchies, doc string generated html documentation, an advanced debugger and integrated help.
Zope support: Object creation and editing. Cut, copy, paste, import and export. Property creation and editing in the Inspector and Python Script debugging.
It is written in Python and uses the wxPython library which wraps wxWindows.
Python is an interpreted, interactive, object-oriented programming language. It is often compared to Tcl, Perl, Scheme or Java.
Python combines remarkable power with very clear syntax. It has modules, classes, exceptions, very high level dynamic data types, and dynamic typing. There are interfaces to many system calls and libraries, and new built-in modules are easily written in C or C++. Python is also usable as an extension language for applications that need a programmable interface.
wxPython is a Python extension module that encapsulates the wxWindows GUI classes. Currently it is available for the Win32 and GTK ports of wxWindows, but as soon as the other ports are brought up to the same level as Win32 and GTK, it should be fairly trivial to enable wxPython to be used with the new GUI.
Enhancements:
- Primarily a bugfix release for compatibility with the latest wxPython.
<<lessZope support: Object creation and editing. Cut, copy, paste, import and export. Property creation and editing in the Inspector and Python Script debugging.
It is written in Python and uses the wxPython library which wraps wxWindows.
Python is an interpreted, interactive, object-oriented programming language. It is often compared to Tcl, Perl, Scheme or Java.
Python combines remarkable power with very clear syntax. It has modules, classes, exceptions, very high level dynamic data types, and dynamic typing. There are interfaces to many system calls and libraries, and new built-in modules are easily written in C or C++. Python is also usable as an extension language for applications that need a programmable interface.
wxPython is a Python extension module that encapsulates the wxWindows GUI classes. Currently it is available for the Win32 and GTK ports of wxWindows, but as soon as the other ports are brought up to the same level as Win32 and GTK, it should be fairly trivial to enable wxPython to be used with the new GUI.
Enhancements:
- Primarily a bugfix release for compatibility with the latest wxPython.
Download (9.6MB)
Added: 2006-12-12 License: GPL (GNU General Public License) Price:
615 downloads
Linguistic Tree Constructor 2.7.1
Linguistic Tree Constructor is a free program for building linguistic syntax trees from text. more>>
Linguistic Tree Constructor is a free program for building linguistic syntax trees from text. Linguistic Tree Constructor lets the user build the tree in a point-and-click fashion.
The program does no analysis on its own -- the user is completely free to draw the tree however he or she wishes. However, the program makes sure that the tree is a tree and not some other kind of graph.
Syntactic theories supported
Three "flavors" of trees are supported:
- "Generic" syntax trees,
- X-Bar syntax trees
- RRG (Role and Reference Grammar) syntax trees (the LSC and the LSNP)
Labeling of nodes
- The program supports adding "labels" to nodes. These labels are userdefinable, and can be used for such things as:
- Rhetorical Structure Theory analyses
- Other discourse-level analyses
- RRG operator-projection analyses
- Subject-Object-Predicate analyses
Main features:
- Draw syntax trees using point-and-click
- Both tree-view and brackets-view are supported
- Supports up to five interlinear lines at word-level
- Interlinear lines can be switched on and off individually
- Change magnification
- Unlimited undo
- Copy (parts of) tree to clipboard as BMP
- Printing + Print Preview
- Uses any font (even Unicode fonts)
- Supports right-to-left languages as well as left-to-right
- Import from straight text (plain text)
- Import from word-per-record SFM interlinear text
- ... and many more...
Enhancements:
- A number of crashes were fixed.
- A bug with magnification on OS X was fixed.
- The speed of interaction with the program was improved.
<<lessThe program does no analysis on its own -- the user is completely free to draw the tree however he or she wishes. However, the program makes sure that the tree is a tree and not some other kind of graph.
Syntactic theories supported
Three "flavors" of trees are supported:
- "Generic" syntax trees,
- X-Bar syntax trees
- RRG (Role and Reference Grammar) syntax trees (the LSC and the LSNP)
Labeling of nodes
- The program supports adding "labels" to nodes. These labels are userdefinable, and can be used for such things as:
- Rhetorical Structure Theory analyses
- Other discourse-level analyses
- RRG operator-projection analyses
- Subject-Object-Predicate analyses
Main features:
- Draw syntax trees using point-and-click
- Both tree-view and brackets-view are supported
- Supports up to five interlinear lines at word-level
- Interlinear lines can be switched on and off individually
- Change magnification
- Unlimited undo
- Copy (parts of) tree to clipboard as BMP
- Printing + Print Preview
- Uses any font (even Unicode fonts)
- Supports right-to-left languages as well as left-to-right
- Import from straight text (plain text)
- Import from word-per-record SFM interlinear text
- ... and many more...
Enhancements:
- A number of crashes were fixed.
- A bug with magnification on OS X was fixed.
- The speed of interaction with the program was improved.
Download (0.81MB)
Added: 2007-08-21 License: GPL (GNU General Public License) Price:
806 downloads
Peco::Container 1.0
Peco::Container is a light inversion of Control (IoC) container. more>>
Peco::Container is a light inversion of Control (IoC) container.
SYNOPSIS
my $c = Peco::Container->new;
$c->register( my_key, My::Class );
$c->register( my_key, My::Class, [ @deps ] );
$c->register( my_key, My::Class, [ @deps ], create );
$c->register( my_key, My::Class, [ @deps ], create, { %attrs } );
$c->register( my_key, My::Class, undef, create );
$c->register( my_key, My::Class, undef, create, { %attrs } );
$c->register( my_key, My::Class, [ @deps ], undef, { %attrs } );
my $instance = $c->get(my_key);
my @instances = $c->get_all();
$c->has(my_key) ? 1 : 0;
$c->is_empty ? 1 : 0;
$c->multicast( method, @args );
Peco::Container is a small, flexible Inversion of Control (IoC) container supporting both Constructor Injection and Setter Injection patterns, as well prototype services (factories) and multicasting.
<<lessSYNOPSIS
my $c = Peco::Container->new;
$c->register( my_key, My::Class );
$c->register( my_key, My::Class, [ @deps ] );
$c->register( my_key, My::Class, [ @deps ], create );
$c->register( my_key, My::Class, [ @deps ], create, { %attrs } );
$c->register( my_key, My::Class, undef, create );
$c->register( my_key, My::Class, undef, create, { %attrs } );
$c->register( my_key, My::Class, [ @deps ], undef, { %attrs } );
my $instance = $c->get(my_key);
my @instances = $c->get_all();
$c->has(my_key) ? 1 : 0;
$c->is_empty ? 1 : 0;
$c->multicast( method, @args );
Peco::Container is a small, flexible Inversion of Control (IoC) container supporting both Constructor Injection and Setter Injection patterns, as well prototype services (factories) and multicasting.
Download (0.015MB)
Added: 2007-06-22 License: Perl Artistic License Price:
855 downloads
List::MRU 0.04
List::MRU is a Perl module that implements a simple fixed-size MRU-ordered list. more>>
List::MRU is a Perl module that implements a simple fixed-size MRU-ordered list.
SYNOPSIS
use List::MRU;
# Constructor
$lm = List::MRU->new(max => 20);
# Constructor with explicit eq subroutine for obj equality tests
$lm = List::MRU->new(max => 20, eq => sub {
$_[0]->stringify eq $_[1]->stringify
});
# Constructor using explicit UUIDs
$lm - List::MRU->new(max => 5, uuid => 1);
# Add item, moving to head of list if already exists
$lm->add($item);
# Add item, moving to head of list if $uuid matches or object already exists
$lm->add($item, $uuid);
# Iterate in most-recently-added order
for $item ($lm->list) {
print "$itemn";
}
# each-style iteration
while (($item, $uuid) = $lm->each) {
print "$item, $uuidn";
}
# Item deletion
$lm->delete($item);
$lm->delete(uuid => $uuid);
# Accessors
$max = $lm->max; # max items in list
$count = $lm->count; # current items in list
Perl module implementing a simple fixed-size most-recently-used- (MRU)-ordered list of values/objects. Well, really its a most- recently-added list - items added to the list are just promoted to the front of the list if they already exist, otherwise they are added there.
Works fine with with non-scalar items, but you will need to supply an explicit eq subroutine to the constructor to handle testing for the same object (or alternatively have overloaded the eq operator for your object).
List::MRU also supports having explicit UUIDs attached to items, allowing List::MRU items to be modified, instead of a change just creating a new entry.
<<lessSYNOPSIS
use List::MRU;
# Constructor
$lm = List::MRU->new(max => 20);
# Constructor with explicit eq subroutine for obj equality tests
$lm = List::MRU->new(max => 20, eq => sub {
$_[0]->stringify eq $_[1]->stringify
});
# Constructor using explicit UUIDs
$lm - List::MRU->new(max => 5, uuid => 1);
# Add item, moving to head of list if already exists
$lm->add($item);
# Add item, moving to head of list if $uuid matches or object already exists
$lm->add($item, $uuid);
# Iterate in most-recently-added order
for $item ($lm->list) {
print "$itemn";
}
# each-style iteration
while (($item, $uuid) = $lm->each) {
print "$item, $uuidn";
}
# Item deletion
$lm->delete($item);
$lm->delete(uuid => $uuid);
# Accessors
$max = $lm->max; # max items in list
$count = $lm->count; # current items in list
Perl module implementing a simple fixed-size most-recently-used- (MRU)-ordered list of values/objects. Well, really its a most- recently-added list - items added to the list are just promoted to the front of the list if they already exist, otherwise they are added there.
Works fine with with non-scalar items, but you will need to supply an explicit eq subroutine to the constructor to handle testing for the same object (or alternatively have overloaded the eq operator for your object).
List::MRU also supports having explicit UUIDs attached to items, allowing List::MRU items to be modified, instead of a change just creating a new entry.
Download (0.004MB)
Added: 2007-05-18 License: Perl Artistic License Price:
889 downloads
Net::BGP::Router 0.04
Net::BGP::Router is a BGP Router based on Net::BGP. more>>
Net::BGP::Router is a BGP Router based on Net::BGP.
SYNOPSIS
use Net::BGP::Router;
# Constructor
$router = new Net::BGP::Router(
Name => My very own router!,
Policy => new Net::BGP::Policy
);
# Accessor Methods
$router->add_peer($peer,both,$acl);
$router->remove_peer($peer,both);
$router->set_policy($policy);
$router->set_policy($peer,in,$acl);
__top
This module implement a BGP router. It uses Net::BGP objects for the BGP sessions and a Net::BGP::RIB object to store the routes. Policy are handled using a Net::BGP::Policy object.
<<lessSYNOPSIS
use Net::BGP::Router;
# Constructor
$router = new Net::BGP::Router(
Name => My very own router!,
Policy => new Net::BGP::Policy
);
# Accessor Methods
$router->add_peer($peer,both,$acl);
$router->remove_peer($peer,both);
$router->set_policy($policy);
$router->set_policy($peer,in,$acl);
__top
This module implement a BGP router. It uses Net::BGP objects for the BGP sessions and a Net::BGP::RIB object to store the routes. Policy are handled using a Net::BGP::Policy object.
Download (0.010MB)
Added: 2006-07-27 License: Perl Artistic License Price:
1189 downloads
Injection 1.0.0
Injection is a simple dependency injection plugin for Rails. more>>
Injection is a simple dependency injection plugin for Rails. Injection allows you to inject ojects into your controllers which have been described in a yaml file (config/objects.yml).
By using constructor injection for controllers, it becomes easy to test the controllers use of such objects using dynamic mocks.
Installation:
$ script/plugin install svn://rubyforge.org//var/svn/injection/tags/injection
<<lessBy using constructor injection for controllers, it becomes easy to test the controllers use of such objects using dynamic mocks.
Installation:
$ script/plugin install svn://rubyforge.org//var/svn/injection/tags/injection
Download (0.014MB)
Added: 2006-06-21 License: GPL (GNU General Public License) Price:
1225 downloads
Class::Container 0.12
Class::Container is a Perl module with Glues object frameworks together transparently. more>>
Class::Container is a Perl module with Glues object frameworks together transparently.
SYNOPSIS
package Car;
use Class::Container;
@ISA = qw(Class::Container);
__PACKAGE__->valid_params
(
paint => {default => burgundy},
style => {default => coupe},
windshield => {isa => Glass},
radio => {isa => Audio::Device},
);
__PACKAGE__->contained_objects
(
windshield => Glass::Shatterproof,
wheel => { class => Vehicle::Wheel,
delayed => 1 },
radio => Audio::MP3,
);
sub new {
my $package = shift;
# windshield and radio objects are created automatically by
# SUPER::new()
my $self = $package->SUPER::new(@_);
$self->{right_wheel} = $self->create_delayed_object(wheel);
... do any more initialization here ...
return $self;
}
This class facilitates building frameworks of several classes that inter-operate. It was first designed and built for HTML::Mason, in which the Compiler, Lexer, Interpreter, Resolver, Component, Buffer, and several other objects must create each other transparently, passing the appropriate parameters to the right class, possibly substituting other subclasses for any of these objects.
The main features of Class::Container are:
Explicit declaration of containment relationships (aggregation, factory creation, etc.)
Declaration of constructor parameters accepted by each member in a class framework
Transparent passing of constructor parameters to the class that needs them
Ability to create one (automatic) or many (manual) contained objects automatically and transparently
<<lessSYNOPSIS
package Car;
use Class::Container;
@ISA = qw(Class::Container);
__PACKAGE__->valid_params
(
paint => {default => burgundy},
style => {default => coupe},
windshield => {isa => Glass},
radio => {isa => Audio::Device},
);
__PACKAGE__->contained_objects
(
windshield => Glass::Shatterproof,
wheel => { class => Vehicle::Wheel,
delayed => 1 },
radio => Audio::MP3,
);
sub new {
my $package = shift;
# windshield and radio objects are created automatically by
# SUPER::new()
my $self = $package->SUPER::new(@_);
$self->{right_wheel} = $self->create_delayed_object(wheel);
... do any more initialization here ...
return $self;
}
This class facilitates building frameworks of several classes that inter-operate. It was first designed and built for HTML::Mason, in which the Compiler, Lexer, Interpreter, Resolver, Component, Buffer, and several other objects must create each other transparently, passing the appropriate parameters to the right class, possibly substituting other subclasses for any of these objects.
The main features of Class::Container are:
Explicit declaration of containment relationships (aggregation, factory creation, etc.)
Declaration of constructor parameters accepted by each member in a class framework
Transparent passing of constructor parameters to the class that needs them
Ability to create one (automatic) or many (manual) contained objects automatically and transparently
Download (0.019MB)
Added: 2006-10-06 License: Perl Artistic License Price:
1113 downloads
Class::Std::Utils 0.0.2
Class::Std::Utils is a Perl module for utility subroutines for building inside-out objects. more>>
Class::Std::Utils is a Perl module for utility subroutines for building "inside-out" objects.
SYNOPSIS
use Class::Std::Utils;
# Constructor for anonymous scalars...
my $new_object = bless anon_scalar(), $class;
# Convert an object reference into a unique ID number...
my $ID_num = ident $new_object;
# Extract class-specific arguments from a hash reference...
my %args = extract_initializers_from($arg_ref);
This module provides three utility subroutines that simplify the creation of "inside-out" classes. See Chapters 15 and 16 of "Perl Best Practices" (OReilly, 2005) for details.
<<lessSYNOPSIS
use Class::Std::Utils;
# Constructor for anonymous scalars...
my $new_object = bless anon_scalar(), $class;
# Convert an object reference into a unique ID number...
my $ID_num = ident $new_object;
# Extract class-specific arguments from a hash reference...
my %args = extract_initializers_from($arg_ref);
This module provides three utility subroutines that simplify the creation of "inside-out" classes. See Chapters 15 and 16 of "Perl Best Practices" (OReilly, 2005) for details.
Download (0.005MB)
Added: 2006-09-02 License: Perl Artistic License Price:
1147 downloads
SWIFT::Factory::BasicHeader 0.03
SWIFT::Factory::BasicHeader is a Perl module that provides a Basic Header Block (Block 1) for a SWIFT message. more>>
SWIFT::Factory::BasicHeader is a Perl module that provides a Basic Header Block (Block 1) for a SWIFT message.
SYNOPSIS
use SWIFT::Factory::BasicHeader;
my $hdr1=SWIFT::Factory::BasicHeader->new();
This module is primarily intended to be used by the different SWIFT::Factory::MTnnn modules to provide full SWIFT messages for input to the SWIFT network.
Nevertheless, there is nothing prohibiting an application to directly use this module for whatever purpose.
Given reasonable parameter values in the constructor, the string method in this module will return a Basic Header Block (Block nbr 1) that can be used in a SWIFT message sent to the SWIFT network.
CONSTRUCTOR
new( APPLICATION_ID=>F, SERVICE_ID=>1, BIC=>VALIDBIC, TERMINAL=>X, BRANCH_CODE=>XXX, SESSION_NBR=>0, INPUT_SEQUENCE_NBR=>0)
The parameters may be given in arbitrary order. Many parameters have builtin default values. If the calling application doesnt provide the parameter at all, the object will apply the default value.
APPLICATION_ID=>
Optional. A one character value that indicates the application within which the message is being sent.
Valid values are:
F (FIN = All user-to-user, FIN system and FIN system msgs),
A (GPA = Most GPA system mesgs)
and
L (Certain GPA msgs, for ex. LOGIN).
Default value: F, which is the most commonly used application.
To set this value, use one of:
SWIFT::Factory::BasicHeader->APP_ID_FIN,
SWIFT::Factory::BasicHeader->APP_ID_GPA,
and
SWIFT::Factory::BasicHeader->APP_ID_GPA_LOG.
Yes, these are constants, and yes, since they are class methods they are available before calling the constructor.
Opposit of the object methods that are functional only after having called the new() constructor.
SERVICE_ID=>
Optional. A numeric value that identifies the type of data that is being sent. Maximum two characters long. See the relevant SWIFT handbook for details.
Default value: 1, which will output as 01.
BIC=>
Technically optional, but it will probably quite rarely make sense to instantiate an object of this class without specifying a BIC. An eight character value that contains a valid receiver BIC.
TERMINAL=>
Optional. A one character value that identifies the receiving terminal.
Default value: X.
BRANCH_CODE=>
Optional. A three character value that identifies the branch code at the receiver.
Default value: XXX.
SESSION_NBR=>
Optional. A numeric value. Maximum four characters long. See the relevant SWIFT handbook for details.
Default value: 0, which will output as 0000.
INPUT_SEQUENCE_NBR=>
Optional. A numeric value. Maximum six characters long. See the relevant SWIFT handbook for details.
Default value: 0, which will output as 000000.
<<lessSYNOPSIS
use SWIFT::Factory::BasicHeader;
my $hdr1=SWIFT::Factory::BasicHeader->new();
This module is primarily intended to be used by the different SWIFT::Factory::MTnnn modules to provide full SWIFT messages for input to the SWIFT network.
Nevertheless, there is nothing prohibiting an application to directly use this module for whatever purpose.
Given reasonable parameter values in the constructor, the string method in this module will return a Basic Header Block (Block nbr 1) that can be used in a SWIFT message sent to the SWIFT network.
CONSTRUCTOR
new( APPLICATION_ID=>F, SERVICE_ID=>1, BIC=>VALIDBIC, TERMINAL=>X, BRANCH_CODE=>XXX, SESSION_NBR=>0, INPUT_SEQUENCE_NBR=>0)
The parameters may be given in arbitrary order. Many parameters have builtin default values. If the calling application doesnt provide the parameter at all, the object will apply the default value.
APPLICATION_ID=>
Optional. A one character value that indicates the application within which the message is being sent.
Valid values are:
F (FIN = All user-to-user, FIN system and FIN system msgs),
A (GPA = Most GPA system mesgs)
and
L (Certain GPA msgs, for ex. LOGIN).
Default value: F, which is the most commonly used application.
To set this value, use one of:
SWIFT::Factory::BasicHeader->APP_ID_FIN,
SWIFT::Factory::BasicHeader->APP_ID_GPA,
and
SWIFT::Factory::BasicHeader->APP_ID_GPA_LOG.
Yes, these are constants, and yes, since they are class methods they are available before calling the constructor.
Opposit of the object methods that are functional only after having called the new() constructor.
SERVICE_ID=>
Optional. A numeric value that identifies the type of data that is being sent. Maximum two characters long. See the relevant SWIFT handbook for details.
Default value: 1, which will output as 01.
BIC=>
Technically optional, but it will probably quite rarely make sense to instantiate an object of this class without specifying a BIC. An eight character value that contains a valid receiver BIC.
TERMINAL=>
Optional. A one character value that identifies the receiving terminal.
Default value: X.
BRANCH_CODE=>
Optional. A three character value that identifies the branch code at the receiver.
Default value: XXX.
SESSION_NBR=>
Optional. A numeric value. Maximum four characters long. See the relevant SWIFT handbook for details.
Default value: 0, which will output as 0000.
INPUT_SEQUENCE_NBR=>
Optional. A numeric value. Maximum six characters long. See the relevant SWIFT handbook for details.
Default value: 0, which will output as 000000.
Download (0.004MB)
Added: 2007-05-25 License: Perl Artistic License Price:
882 downloads
Net::FreeDB2::Connection 0.8.2.6
Net::FreeDB2::Connection is a FreeDB/CDDB abstract connection class. more>>
Net::FreeDB2::Connection is a FreeDB/CDDB abstract connection class.
Net::FreeDB2::Connection is an abstract class to represent connections to FreeDB/CDDB servers. After a successfull connection, FreeDB/CDDB queries, reads etc can be made to obtain/provide information from/to FreeDB/CDDB databases.
CONSTRUCTOR
new (OPT_HASH_REF)
Creates a new Net::FreeDB2::Connection object. By default connect () is called to initiate the connection but see option no_connect. See the implementation for complements/restrictions.
Options for OPT_HASH_REF may include:
client_name
Mandatory option to name the connecting client software.
client_version
Mandatory option with the client software version string.
client_host
The hostname of the client. Defaults to &Sys::Hostname::hostname ().
client_user
The user of the client. Defaults to scalar (getpwuid ($>));
freedb_host
The FreeDB/CDDB host. Defaults to freedb.freedb.org.
freedb_port
The port on the FreeDB/CDDB host.
proxy_host
Proxy host.
proxy_port
Port on the proxy host. Defaults to 8080.
proxy_user
Proxy user name to use.
proxy_passwd
Proxy password to use.
no_connect
Do not call connect () during instanciation.
<<lessNet::FreeDB2::Connection is an abstract class to represent connections to FreeDB/CDDB servers. After a successfull connection, FreeDB/CDDB queries, reads etc can be made to obtain/provide information from/to FreeDB/CDDB databases.
CONSTRUCTOR
new (OPT_HASH_REF)
Creates a new Net::FreeDB2::Connection object. By default connect () is called to initiate the connection but see option no_connect. See the implementation for complements/restrictions.
Options for OPT_HASH_REF may include:
client_name
Mandatory option to name the connecting client software.
client_version
Mandatory option with the client software version string.
client_host
The hostname of the client. Defaults to &Sys::Hostname::hostname ().
client_user
The user of the client. Defaults to scalar (getpwuid ($>));
freedb_host
The FreeDB/CDDB host. Defaults to freedb.freedb.org.
freedb_port
The port on the FreeDB/CDDB host.
proxy_host
Proxy host.
proxy_port
Port on the proxy host. Defaults to 8080.
proxy_user
Proxy user name to use.
proxy_passwd
Proxy password to use.
no_connect
Do not call connect () during instanciation.
Download (0.030MB)
Added: 2007-03-05 License: Perl Artistic License Price:
965 downloads
ExtUtils::ModuleMaker 0.47
ExtUtils::ModuleMaker is a Perl module better than h2xs for creating modules. more>>
ExtUtils::ModuleMaker is a Perl module better than h2xs for creating modules.
SYNOPSIS
At the command prompt:
% modulemaker
Inside a Perl program:
use ExtUtils::ModuleMaker;
$mod = ExtUtils::ModuleMaker->new(
NAME => Sample::Module
);
$mod->complete_build();
$mod->dump_keys(qw|
... # key provided as argument to constructor
... # same
|);
$mod->dump_keys_except(qw|
... # key provided as argument to constructor
... # same
|);
$license = $mod->get_license();
$mod->make_selections_defaults();
This module is a replacement for the most typical use of the h2xs utility bundled with all Perl distributions: the creation of the directories and files required for a pure-Perl module to be installable with make and distributable on the Comprehensive Perl Archive Network (CPAN).
h2xs has many options which are useful -- indeed, necessary -- for the creation of a properly structured distribution that includes C code as well as Perl code. Most of the time, however, h2xs is used as follows
% h2xs -AXn My::Module
to create a distribution containing only Perl code. ExtUtils::ModuleMaker is intended to be an easy-to-use replacement for this use of h2xs.
While you can call ExtUtils::ModuleMaker from within a Perl script (as in the SYNOPSIS above), its easier to use with a command-prompt invocation of the modulemaker script bundled with this distribution:
% modulemaker
Then respond to the prompts. For Perl programmers, laziness is a virtue -- and modulemaker is far and away the laziest way to create a pure Perl distribution which meets all the requirements for worldwide distribution via CPAN.
<<lessSYNOPSIS
At the command prompt:
% modulemaker
Inside a Perl program:
use ExtUtils::ModuleMaker;
$mod = ExtUtils::ModuleMaker->new(
NAME => Sample::Module
);
$mod->complete_build();
$mod->dump_keys(qw|
... # key provided as argument to constructor
... # same
|);
$mod->dump_keys_except(qw|
... # key provided as argument to constructor
... # same
|);
$license = $mod->get_license();
$mod->make_selections_defaults();
This module is a replacement for the most typical use of the h2xs utility bundled with all Perl distributions: the creation of the directories and files required for a pure-Perl module to be installable with make and distributable on the Comprehensive Perl Archive Network (CPAN).
h2xs has many options which are useful -- indeed, necessary -- for the creation of a properly structured distribution that includes C code as well as Perl code. Most of the time, however, h2xs is used as follows
% h2xs -AXn My::Module
to create a distribution containing only Perl code. ExtUtils::ModuleMaker is intended to be an easy-to-use replacement for this use of h2xs.
While you can call ExtUtils::ModuleMaker from within a Perl script (as in the SYNOPSIS above), its easier to use with a command-prompt invocation of the modulemaker script bundled with this distribution:
% modulemaker
Then respond to the prompts. For Perl programmers, laziness is a virtue -- and modulemaker is far and away the laziest way to create a pure Perl distribution which meets all the requirements for worldwide distribution via CPAN.
Download (0.13MB)
Added: 2006-10-03 License: Perl Artistic License Price:
1119 downloads
Log::Dispatch::TkText 1.007
Log::Dispatch::TkText provides a Text widget for Log::Dispatch. more>>
Log::Dispatch::TkText provides a Text widget for Log::Dispatch.
SYNOPSIS
use Tk ;
use Log::Dispatch;
use Log::Dispatch::TkText ;
my $dispatch = Log::Dispatch->new;
my $mw = MainWindow-> new ;
my $tklog = $mw->Scrolled(LogText, name => tk,
min_level => debug);
$tklog -> pack ;
# add the logger object to $dispatch (not the widget !!)
$dispatch->add($tklog->logger) ;
$dispatch -> log
(
level => info,
message => "Quaquacomekiki ? (so says Averell Dalton)"
) ;
This widget provide a read-only text widget (based on Tk::ROText) for logging through the Log::Dispatch module.
Note that this widget works with a buddy Log::Dispatch::ToTk object which will be created by the widgets constructor. The reference to this buddy object must be added to the main log dispatcher.
<<lessSYNOPSIS
use Tk ;
use Log::Dispatch;
use Log::Dispatch::TkText ;
my $dispatch = Log::Dispatch->new;
my $mw = MainWindow-> new ;
my $tklog = $mw->Scrolled(LogText, name => tk,
min_level => debug);
$tklog -> pack ;
# add the logger object to $dispatch (not the widget !!)
$dispatch->add($tklog->logger) ;
$dispatch -> log
(
level => info,
message => "Quaquacomekiki ? (so says Averell Dalton)"
) ;
This widget provide a read-only text widget (based on Tk::ROText) for logging through the Log::Dispatch module.
Note that this widget works with a buddy Log::Dispatch::ToTk object which will be created by the widgets constructor. The reference to this buddy object must be added to the main log dispatcher.
Download (0.005MB)
Added: 2007-03-29 License: Perl Artistic License Price:
940 downloads
Test::Unit::Runner::XML 0.1
Test::Unit::Runner::XML is a Perl module that can generate XML reports from unit test results. more>>
Test::Unit::Runner::XML is a Perl module that can generate XML reports from unit test results.
SYNOPSIS
use Test::Unit::Runner::XML;
mkdir("test_reports");
my $runner = Test::Unit::Runner::XML->new("test-reports");
$runner->start($test);
exit(!$runner->all_tests_passed());
Test::Unit::Runner::XML generates XML reports from unit test results. The reports are in the same format as those produced by Ants JUnit task, allowing them to be used with Java continuous integration and reporting tools.
CONSTRUCTOR
Test::Unit::Runner::XML->new($directory)
Construct a new runner that will write XML reports into $directory
METHODS
start
$runner->start($test);
Run the Test::Unit::Test $test and generate XML reports from the results.
all_tests_passed
exit(!$runner->all_tests_passed());
Return true if all tests executed by $runner since it was constructed passed.
<<lessSYNOPSIS
use Test::Unit::Runner::XML;
mkdir("test_reports");
my $runner = Test::Unit::Runner::XML->new("test-reports");
$runner->start($test);
exit(!$runner->all_tests_passed());
Test::Unit::Runner::XML generates XML reports from unit test results. The reports are in the same format as those produced by Ants JUnit task, allowing them to be used with Java continuous integration and reporting tools.
CONSTRUCTOR
Test::Unit::Runner::XML->new($directory)
Construct a new runner that will write XML reports into $directory
METHODS
start
$runner->start($test);
Run the Test::Unit::Test $test and generate XML reports from the results.
all_tests_passed
exit(!$runner->all_tests_passed());
Return true if all tests executed by $runner since it was constructed passed.
Download (0.003MB)
Added: 2007-06-13 License: Perl Artistic License Price:
863 downloads
GPS::SpaceTrack 0.11
GPS::SpaceTrack is a package for calculating the position of GPS satellites. more>>
GPS::SpaceTrack is a package for calculating the position of GPS satellites.
SYNOPSIS
use GPS::SpaceTrack;
my $obj=GPS::SpaceTrack->new(filename=>"gps.tle");
print join("t", qw{Count PRN ELEV Azim SNR USED}), "n";
foreach ($obj->getsatellitelist({lat=>38.870997, lon=>-77.05596})) {
print join("t", $_->prn, $_->elev, $_->azim, $_->snr, $_->used), "n";
}
This package can calculates the location of the GPS satellite constellation given the position of the receiver and a time which can be in the future.
CONVENTIONS
Function naming convention is "format of the return" underscore "format of the parameters."
CONSTRUCTOR
new
The new() constructor passes paramaters to the filename() method.
my $obj = GPS::SpaceTrack->new(filename=>$filename);
METHODS
getsatellitelist
The getsatellitelist() method returns a list of Net::GPSD::Satellite objects. The getsatellitelist() method is a wrapper around getsatellitelist_rad() for data formatted in degrees instead of radians.
my $list=$obj->getsatellitelist({lat=>$lat, lon=>$lon, alt=>$hae, time=>$time}); #degrees, degrees, meters, seconds from epoch
my @list=$obj->getsatellitelist({lat=>$lat, lon=>$lon, alt=>$hae, time=>$time}); #degrees, degrees, meters, seconds from epoch
getsatellitelist_rad
The getsatellitelist_rad() method returns a list of Net::GPSD::Satellite objects. This method is basically a wrapper around Astro::Coord::ECI::TLE.
my $list=$obj->getsatellitelist_rad({lat=>$lat, lon=>$lon, alt=>$hae, time=>$time}); #radians, radians, meters, seconds from epoch
my @list=$obj->getsatellitelist_rad({lat=>$lat, lon=>$lon, alt=>$hae, time=>$time}); #radians, radians, meters, seconds from epoch
filename
Method to get or set the filename of the TLE data.
my $filename=$obj->filename;
my $filename=$obj->filename(filename=>$filename);
<<lessSYNOPSIS
use GPS::SpaceTrack;
my $obj=GPS::SpaceTrack->new(filename=>"gps.tle");
print join("t", qw{Count PRN ELEV Azim SNR USED}), "n";
foreach ($obj->getsatellitelist({lat=>38.870997, lon=>-77.05596})) {
print join("t", $_->prn, $_->elev, $_->azim, $_->snr, $_->used), "n";
}
This package can calculates the location of the GPS satellite constellation given the position of the receiver and a time which can be in the future.
CONVENTIONS
Function naming convention is "format of the return" underscore "format of the parameters."
CONSTRUCTOR
new
The new() constructor passes paramaters to the filename() method.
my $obj = GPS::SpaceTrack->new(filename=>$filename);
METHODS
getsatellitelist
The getsatellitelist() method returns a list of Net::GPSD::Satellite objects. The getsatellitelist() method is a wrapper around getsatellitelist_rad() for data formatted in degrees instead of radians.
my $list=$obj->getsatellitelist({lat=>$lat, lon=>$lon, alt=>$hae, time=>$time}); #degrees, degrees, meters, seconds from epoch
my @list=$obj->getsatellitelist({lat=>$lat, lon=>$lon, alt=>$hae, time=>$time}); #degrees, degrees, meters, seconds from epoch
getsatellitelist_rad
The getsatellitelist_rad() method returns a list of Net::GPSD::Satellite objects. This method is basically a wrapper around Astro::Coord::ECI::TLE.
my $list=$obj->getsatellitelist_rad({lat=>$lat, lon=>$lon, alt=>$hae, time=>$time}); #radians, radians, meters, seconds from epoch
my @list=$obj->getsatellitelist_rad({lat=>$lat, lon=>$lon, alt=>$hae, time=>$time}); #radians, radians, meters, seconds from epoch
filename
Method to get or set the filename of the TLE data.
my $filename=$obj->filename;
my $filename=$obj->filename(filename=>$filename);
Download (0.051MB)
Added: 2007-05-18 License: Perl Artistic License Price:
891 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above constructor search only lists software in full, demo and trial versions for free download. 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