Shore Programmer's Manual - 3 November 94


INTRO \- The SDL C++ Language Binding Generator


sdlcxx module-name


This is the SDL C++ Language Binding Generator. It connects to a Shore server and generates a language binding for the specified module. The binding is sent to standard output. In normal usage, standard output is redirected to a module-name.h.

The code generated by sdlcxx (called the language binding ) comprises several things:

A set of classes embodied in the macro REF(T) (which are used as if they constituted a C++ template REF<T>, but you must remember to use parentheses rather than angle braces). The declaration and the implementation of REF(T) are generated by sdlcxx. See ref(oc) .
Class declarations
for each SDL interface in your module.
Class declarations and implementations
for the types of certain attributes: sets and bags, strings, and indexes.
Method implementations
of all class methods except those explicitly defined in the class's SDL interface description. You must provide C++ implementation for each method that is given in an SDL Interface. The implementation of the methods must be given in a C++ source file; it cannot be given in the SDL interface description; SDL does not cope with inline method definitions in class declarations.


The Shore Server process, shore, must already be running when sdlcxx is invoked.


This manual page applies to Version 0.1 of theShore software.


The Shore project is sponsored by the Advanced Research Project Agency, ARPA order number 018 (formerly 8230), monitored by the U.S. Army Research Laboratory under contract DAAB07-91-C-Q518.


Copyright (c) 1994 Computer Sciences Department, University of Wisconsin -- Madison. All Rights Reserved.


For information about the SDL compiler, see sdl(sdl) .

For information about REF(T) classes, see ref(oc) .

For information about how to use the attributes and methods of your Shore objects, see new(sdl) , method(oc) , set(sdl) , string(sdl) , and update(oc)