#!/bin/sh # This script generates a c++/c wrapper for the class it is # given, under strict cca assumptions. That is the wrapper # includes only the cca headers # and the component's class file header, and fully abstract # headers we propose. idString="$1 built strict by $USER@$HOST in `pwd` on `date`." cat << __EOF1 // This is a generated file. Do not commit to CVS. #include #include #include #include #include "dc/component/$1.h" extern "C" { classic::gov::cca::Component *create_$1() { classic::gov::cca::Component *comp_ptr; $1 *component; component = new $1(); comp_ptr = dynamic_cast(component); return comp_ptr; } } namespace { char id[]="\$Id: genDLWrapperStrict,v 1.1 2003/10/07 08:04:22 baallan Exp $idString $"; } ENDSEMI __EOF1 exit 0