Hi,
I have defined a typemap that is not getting into my wrapped code. I've gone through the documentation and obviously I'm missing something. The typemap definition :
%{
#include <FidTest.h>
%}
 
%typemap(perl5, in) const ms::FidOper&
{
    // %typemap(perl5, in) const FidOper&
 
    if (!SvROK($input))
        croak("$input is not an hash reference.");
    if (SvTYPE(SvRV($input)) != SVt_PVHV)
        croak("$input is not an hash.");
 
   // DON'T DO ANYTHING YET, LETS SEE IF THIS GET INCLUDED
   // IN THE WRAPPED CODE
}
 
My understanding is that this code gets inserted in to the wrapped code whenever a const ms::FidOper& is encountered. Is my understanding correct? If so why would my resulting code not have the typemap defintion include? Here are the other pieces of information that me be useful.
 
// Fidtest.h
namespace ms {
  void argTest(const char* arg1,
                    const char* arg2,
                    const FidOper& arg3);
}
 
//Fidtest.cpp
#include <test/FidTest.h>
 
using namespace std;
using namespace ms:
void
argTest(const char* arg1, const char* arg2, const ms::FidOper& arg3)
{
    cout << "in argTest..." << endl;
}
 
 
Resulting wrapped code :
 
XS(_wrap_argTest) {
    {
        char *arg1 = (char *) 0 ;
        char *arg2 = (char *) 0 ;
        ms::FidOper *arg3 = 0 ;
        int argvi = 0;
        dXSARGS;
       
        if ((items < 3) || (items > 3)) {
            SWIG_croak("Usage: argTest(arg1,arg2,arg3);");
        }
        if (!SvOK((SV*) ST(0))) arg1 = 0;
        else arg1 = (char *) SvPV(ST(0), PL_na);
        if (!SvOK((SV*) ST(1))) arg2 = 0;
        else arg2 = (char *) SvPV(ST(1), PL_na);
        {
                if (SWIG_ConvertPtr(ST(2), (void **) &arg3, SWIGTYPE_p_ms__FidOper,0) < 0) {
                SWIG_croak("Type error in argument 3 of argTest. Expected _p_ms__FidOper");
            }
        }
        ms::argTest((char const *)arg1,(char const *)arg2,(ms::FidOper const &)*arg3);
       
       
        XSRETURN(argvi);
        fail:
        ;
    }
    croak(Nullch);
}
 
Any help is appreciated.
 
Thanks,
Bob Conklin
 

This is not an offer (or solicitation of an offer) to buy/sell the securities/instruments mentioned or an official confirmation.  Morgan Stanley may deal as principal in or own or act as market maker for securities/instruments mentioned or may advise the issuers.  This is not research and is not from MS Research but it may refer to a research analyst/research report.  Unless indicated, these views are the author’s and may differ from those of Morgan Stanley research or others in the Firm.  We do not represent this is accurate or complete and we may not update this.  Past performance is not indicative of future returns.  For additional information, research reports and important disclosures, contact me or see https://secure.ms.com/servlet/cls.  You should not use e-mail to request, authorize or effect the purchase or sale of any security or instrument, to send transfer instructions, or to effect any other transactions.  We cannot guarantee that any such requests received via e-mail will be processed in a timely manner.  This communication is solely for the addressee(s) and may contain confidential information.  We do not waive confidentiality by mistransmission.  Contact me if you do not wish to receive these communications.  In the UK, this communication is directed in the UK to those persons who are market counterparties or intermediate customers (as defined in the UK Financial Services Authority’s rules).