in reply to Embedding Perl / C++ structure question
In C++
XS code (you need these to use the methods from SomeObject in perl:class SomeObject { public: int get_valueA(); void set_valueA(int value); // etc... }
You'll also want to set up a typemap for each class. See also the standard typemap file in your perl distribution for T_PTROBJ_SPECIAL.int SomeObject::get_valueA() void SomeObject::set_valueA(int value)
See also perlxstut and perlxs and the book "Extending and Embedding Perl".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Embedding Perl / C++ structure question
by TheGeniuS (Novice) on Nov 28, 2007 at 20:26 UTC | |
by Joost (Canon) on Nov 28, 2007 at 21:00 UTC | |
by TheGeniuS (Novice) on Nov 28, 2007 at 22:08 UTC | |
by perlsyntax (Pilgrim) on Nov 28, 2007 at 22:57 UTC |