Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.477.915 Times

Class::Driver 0.005

  Date Added: November 27, 2010  |  Visits: 734

Class::Driver

Report Broken Link
Printer Friendly Version


Product Homepage
Download (98 downloads)

EXAMPLE # This is a really long synopsis, but hopefully it will give you an idea... package MyPackage; use Class::Driver; use base q(Class::Driver); our %drivers; return 1; sub new { my($class, %args) = @_; die "mime_type is required" unless($args{mime_type}); die "no driver to handle type $args{mime_type}" unless($drivers{$args{mime_type}}); return $class->driver_load($drivers{$args{mime_type}}, %args); } sub driver_new { my($class, %args) = @_; return bless %args, $class; } sub driver_required { 1; } sub driver_requied_here { 0; } package MyPackage::avi; use MyPackage; use base q(MyPackage); use Video::Info; $MyPackage::drivers{video/x-msvideo} = avi; return 1; sub driver { "avi"; } sub driver_new { my($class, %args) = @_; die "file is a required parameter for $args{mime_type} files" unless($args{file}); $args{info} = Video::Info->new(-file => $args{file}) or die "Failed to create a Video::Info object for $args{file}"; return $class->SUPER::driver_new(%args); } sub duration { my $self = shift; return $args{info}->duration; } package MyPackage::mp3; use base q(MyPackage); use MP3::Info; $MyPackage::drivers{audio/mpeg} = mp3; ## (etc...) package main; my $foo = MyPackage->new(file => foobar.mp3, mime_type => audio/mpeg); print "foobar.mp3 is ", $foo->duration, " seconds long.n";.

Requirements: No special requirements
Platforms: Linux
Keyword: Args Class Classdriver Driver Libraries Mime Mypackage Programming Sub Type
Users rating: 0/10

License: Freeware Size: 11.26 KB
CLASS::DRIVER RELATED
File Sharing  -  MooDriver 0.20
MooDriver is a library providing a C++ museekd "driver" class (Moo::Driver) MooDriver makes it easy to write museekd clients without having to deal with the museekd daemon and its protocol directly. museekd is a daemon which acts as a gateway to...
389.12 KB  
Programming  -  devkitPro 1.5.7
This project is for homebrew console development tools based on the gnu compiler collection with additional tools and libraries to aid programming each supported console. The windows variants are built with MinGW.
444.26 KB  
Programming  -  WebMDI 1.0
WebMDI is a PHP class that allows the building of windowless MDI-type sub-windows to be created. Using MDI windows on a web page allows the building of well presented forms for Internet application Development.
34.44 KB  
Libraries  -  Attachment Mailer class 1.20
Attachment Mailer class is a PHP class that can send email messages with multiple attachments and HTML. I wrote this class to integrate more functionality for classes like Access_user or DB_cart and others using PHP’s mail function. But the...
19.46 KB  
Libraries  -  Validate_fields Class 1.34
Validate_fields Class is an easy-to-use form field validation PHP script. This class can be used to validate database inputs or mail forms. It can validate simple text, numbers, dates, urls, email addresses, and the presence of HTML tags....
8.19 KB  
Libraries  -  Class::Inner 0.1
Class::Inner is a perlish implementation of Java like inner classes. SYNOPSIS use Class::Inner; my $object = Class::Inner->new( parent => ParentClass, methods => { method => sub { ... } }, }, constructor => new, args =>...
3.07 KB  
Libraries  -  Exception::Class 1.23
Exception::Class is a Perl module that allows you to declare real exception classes in Perl. SYNOPSIS use Exception::Class ( MyException, AnotherException => { isa => MyException }, YetAnotherException => { isa => AnotherException,...
16.38 KB  
Libraries  -  Class::Meta::Type 0.53
Class::Meta::Type is a Perl module for data type validation and accessor building. SYNOPSIS package MyApp::TypeDef; use strict; use Class::Meta::Type; use IO::Socket; my $type = Class::Meta::Type->add( key => io_socket, desc =>...
61.44 KB  
Libraries  -  Access_user Class 1.92
Access_user Class is an easy to use system for protecting pages and registering users. The main features are user login, user registration, page protection, forgotten password recovery, and email-based account activation. The class is powered by...
36.86 KB  
Libraries  -  DB_cart Class 1.13
DB_cart Class is a MySQL shopping cart script that can be used with third party product catalogues and membership systems. The MySQL database structure is neutral to existing systems. DB_cart Class can handle the shopping cart (add, update, and...
35.84 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB