[mapserver-dev] Re: Changing the connectiontype with the mapscript interface doesn't change the vtable.

Tamas Szekeres szekerest at gmail.com
Tue Aug 12 18:02:48 EDT 2008


Or this way ;-)

int ConnectLayer(int connectiontype,
                            char *library_str)
    {
        msConnectLayer(self, connectiontype, library_str);
    }



2008/8/12 Tamas Szekeres <szekerest at gmail.com>:
> Hmmm. What I really want to do is to expose msConnectLayer in layer.i:
>
> int ConnectLayer(int connectiontype,
>                            char *library_str)
>    {
>        msConnectLayer(self,
>                   const int connectiontype,
>                   const char *library_str)
>    }
>
>
>
> Tamas
>
>
> 2008/8/12 Tamas Szekeres <szekerest at gmail.com>:
>> Devs,
>>
>> By changing the connectiontype at the SWIG interface the vtable will
>> not change accordingly so the vtable function of the old
>> connectiontype will be called.
>> Do we have a method to reset the vtable in this case or should we
>> probably implement a layerObj.setConnectionType  for this purpose?
>>
>>
>> Best regards,
>>
>> Tamas
>>
>


More information about the mapserver-dev mailing list