[Saga-devel] Adding a new (overloaded) method to an adaptor

Livesey, P (Paul) paul.livesey at stfc.ac.uk
Fri Jan 16 07:35:26 CST 2009


>It depends. If your new function should be exposed through the SAGA API then
>you need to add it not only to the adaptor (obviously) but to the package as
>well. In this case it's the easiest to make the function names unique.
>Overloading function names is possible, but requires additional attention
>while writing the adaptor registration functionality in the package.

>If your new function is just something you need inside your adaptor you can
>name it as you like, but you should avoid choosing a name similar to any
>name used for the exposed functions (usually starting with sync_... or
>async_...).

>This limitation is due to the automagic behind adaptor function
>registration. Choosing a name similar to the exposed CPI functions confuses
>this detection magic. Which is what you're seeing.

>HTH
>Regards Hartmut

Hartmut,

The new function needs to be exposed through the SAGA API and ideally have the same name but be overloaded.

I've added it to the adaptor and the package (the Service Discovery class and its corresponding implementation class).  I've done as much of the macro-magic as I can but am not sure how to do the function registration.

So, how would I go about registering this overloaded function as we don't really want to use a different function name.

Thanks,

Paul.

-- 
Scanned by iCritical.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3288 bytes
Desc: not available
Url : https://mail.cct.lsu.edu/mailman/private/saga-devel/attachments/20090116/54b3c487/attachment.bin


More information about the saga-devel mailing list