ExtUtils::Typemap::STL::String - A set of typemaps for STL std::strings
use ExtUtils::Typemap::STL::String; # First, read my own type maps: my $private_map = ExtUtils::Typemap->new(file => 'my.map'); # Then, get the object map set and merge it into my maps $private_map->merge(typemap => ExtUtils::Typemap::STL::String->new); # Now, write the combined map to an output file $private_map->write(file => 'typemap');
ExtUtils::Typemap::STL::String is an ExtUtils::Typemap subclass that provides a set of mappings for C++ STL strings. These are:
ExtUtils::Typemap::STL::String
ExtUtils::Typemap
TYPEMAP std::string T_STD_STRING std::string* T_STD_STRING_PTR INPUT T_STD_STRING $var = std::string( SvPV_nolen( $arg ), SvCUR( $arg ) ); T_STD_STRING_PTR $var = new std::string( SvPV_nolen( $arg ), SvCUR( $arg ) ); OUTPUT T_STD_STRING $arg = newSVpvn( $var.c_str(), $var.length() ); T_STD_STRING_PTR $arg = newSVpvn( $var->c_str(), $var->length() );
These are the overridden methods:
Creates a new ExtUtils::Typemap::STL::String object. It acts as any other ExtUtils::Typemap object, except that it has the string type maps initialized.
ExtUtils::Typemap, ExtUtils::Typemap::Default, ExtUtils::Typemap::ObjectMap
Steffen Mueller <smueller@cpan.org>
Copyright 2010 by Steffen Mueller
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install ExtUtils::Typemap::Default, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ExtUtils::Typemap::Default
CPAN shell
perl -MCPAN -e shell install ExtUtils::Typemap::Default
For more information on module installation, please visit the detailed CPAN module installation guide.