File: Example.pm

package info (click to toggle)
libextutils-xspp-perl 0.1800-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 992 kB
  • sloc: perl: 8,324; cpp: 125; makefile: 2
file content (48 lines) | stat: -r--r--r-- 1,058 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package XSpp::Example;
use 5.008;
use strict;
use warnings;

our $VERSION = '0.01';

require XSLoader;
XSLoader::load('XSpp::Example', $VERSION);

1;
__END__

=head1 NAME

XSpp::Example - A simple example of XS++

=head1 DESCRIPTION

This module just serves as a very basic example distribution using C<ExtUtils::XSpp>
to wrap C++ code for use from Perl. See F<Animal.h> and F<Dog.h> for the
C++ implementation and F<Animal.xsp> and F<Dog.xsp> for the declaration of the
interface.

Types are mapped in F<typemap.xsp> (XS++ type map)
and F<mytype.map> as well as F<perlobject.map> (XS type map).

The classes are used in the test files under F<t/>.

=head1 SEE ALSO

L<ExtUtils::XSpp>

=head1 AUTHOR

Steffen Mueller, E<lt>smueller@cpan.orgE<gt>

=head1 COPYRIGHT AND LICENSE

The XSpp::Example module is

Copyright (C) 2010 by Steffen Mueller

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.0 or,
at your option, any later version of Perl 5 you may have available.

=cut