In the
directory, type $STUDENT_SRC/components/integrators/cxxtau_babel_pg -f
integrators_IntegratorProxy_Impl.cxx -h integrator_IntegratorPort.hxx -p
IntegratorPort -t integrator.IntegratorPort
The usage of the proxy generator is as follows:
Usage: tau_babel_pg <filename> -h <header file> -p <port name> -t <port type> [-f]
The -h option specifies the header file that
needs to be included to use the port. Note that this is the same
header file that was added to the drivers.CXXDriver component in order to
use the integrator.IntegratorPort.
The -p option specifies the name of the port.
The generated proxy will have two ports named with the port name given
appended with “Provide” and “Use” to
distinguish them.
The -t option specifies the C++ type of the
port. It can be found by examining the appropriate header
file.
The -f option forces overwrite of the
_Impl.cc and file _Impl.hh
files.
Open integrators_IntegratorProxy_Impl.cxx and look at the code that the proxy generator inserted between the splicer blocks to get a feel for what is really going
on.
Now build the proxy by going to and running
$STUDENT_SRCmake.