Overloaded methods

Since C++ is an object-oriented language, the language is much more amenable to the SIDL programming model and less demanding of the programmer than bindings to non-OO languages, such as C and FORTRAN 77.

The basic process of invoking overloaded methods is illustrated below based on the overload_sample.sidl file shown in Section 5.7. Recall that the file describes three versions of the getValue method. The first takes no arguments, the second an integer, and the third a boolean.


#ifdef SIDL_USE_UCXX
using namespace ucxx;
#endif

bool b1, bresult;
int  i1, iresult, nresult;

Overload::Sample t  = Overload::Sample::_create();

nresult = t.getValue();
bresult = t.getValue(b1);
iresult = t.getValue(i1);





babel-1.4.0
users_guide Last Modified 2008-10-16

http://www.llnl.gov/CASC/components
components@llnl.gov