| 1 | package ExtUtils::Typemaps::Default; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use ExtUtils::Typemaps; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 2 | our $VERSION = '1.07'; | |
| 8 | |||
| 9 | 2 | our @ISA = qw(ExtUtils::Typemaps); | |
| 10 | |||
| 11 | 2 | require ExtUtils::Typemaps::ObjectMap; | |
| 12 | 2 | require ExtUtils::Typemaps::Basic; | |
| 13 | 2 | require ExtUtils::Typemaps::STL; | |
| 14 | |||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | ExtUtils::Typemaps::Default - A set of useful typemaps | ||
| 19 | |||
| 20 | =head1 SYNOPSIS | ||
| 21 | |||
| 22 | use ExtUtils::Typemaps::Default; | ||
| 23 | # First, read my own type maps: | ||
| 24 | my $private_map = ExtUtils::Typemaps->new(file => 'my.map'); | ||
| 25 | |||
| 26 | # Then, get the default set and merge it into my maps | ||
| 27 | my $map = ExtUtils::Typemaps::Default->new; | ||
| 28 | $private_map->merge(typemap => $map); | ||
| 29 | |||
| 30 | # Now, write the combined map to an output file | ||
| 31 | $private_map->write(file => 'typemap'); | ||
| 32 | |||
| 33 | =head1 DESCRIPTION | ||
| 34 | |||
| 35 | C<ExtUtils::Typemaps::Default> is an C<ExtUtils::Typemaps> | ||
| 36 | subclass that provides a set of default mappings (in addition to what | ||
| 37 | perl itself provides). These default mappings are currently defined | ||
| 38 | as the combination of the mappings provided by the | ||
| 39 | following typemap classes which are provided in this distribution: | ||
| 40 | |||
| 41 | L<ExtUtils::Typemaps::ObjectMap>, L<ExtUtils::Typemaps::STL>, | ||
| 42 | L<ExtUtils::Typemaps::Basic> | ||
| 43 | |||
| 44 | =head1 METHODS | ||
| 45 | |||
| 46 | These are the overridden methods: | ||
| 47 | |||
| 48 | =head2 new | ||
| 49 | |||
| 50 | Creates a new C<ExtUtils::Typemaps::Default> object. | ||
| 51 | |||
| 52 | =cut | ||
| 53 | |||
| 54 | 2 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 55 | 2 | my $class = shift; | |
| 56 | |||
| 57 | 2 | my $self = $class->SUPER::new(@_); | |
| 58 | 2 | $self->merge(typemap => ExtUtils::Typemaps::Basic->new); | |
| 59 | 2 | $self->merge(typemap => ExtUtils::Typemaps::ObjectMap->new); | |
| 60 | 2 | $self->merge(typemap => ExtUtils::Typemaps::STL->new); | |
| 61 | |||
| 62 | 2 | return $self; | |
| 63 | } | ||
| 64 | |||
| 65 | 2 | 1; | |
| 66 | |||
| 67 | __END__ | ||