Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!lth.se!newsuser From: dag@control.lth.se (Dag Bruck) Newsgroups: comp.lang.c++ Subject: Generating C++ from a prototype -- examples Summary: Some useful examples already exist. Message-ID: <1991Feb26.202515.28688@lth.se> Date: 26 Feb 91 20:25:15 GMT Sender: newsuser@lth.se (LTH network news server) Organization: Department of Automatic Control, Lund, Sweden Lines: 38 I will refrain from commenting the entomologist's latest posting. I will instead give a few examples of what I mean by: >1. If the the design is well-understood and verified, for example by >implementing a prototype, we can generate header files and stubs from >the prototype. The first example is Ibuild, a user interface builder that is part of InterViews 3.0 (currently in alpha-release). The user composes several predefined graphical and interactive objects with a graphical editor. When the design is complete, Ibuild can generate a set of .h and .c files that implements this user interface. The code is not complete -- the behaviour of interactive objects must be added afterwards, for example. Ibuild will also generate a small "main" program so you can test drive the user interface. The second example is TeleUse, another user interface management system, although for C and X11. This is a rather more mature (commercial) product. I believe the output of TeleUse requires much less hand-crafting than the Ibuild output. The third example is not directly related to C++, but perhaps the most interesting because it goes beyond computer programming. Simnon is a simulator package for non-linear systems. It provides a complete interactive environment for simulation of models based on non-linear differential equations. Simnon is a useful package, for example for designing a control system. There is an additional package that takes Simnon code as input and produces Modula-2 code suitable for implementing a controller on an IBM PC (there is also a small runtime library that provides initialization and a simple graphical user interface). Dag M Bruck -- Department of Automatic Control E-mail: dag@control.lth.se Lund Institute of Technology P. O. Box 118 Phone: +46 46-104287 S-221 00 Lund, SWEDEN Fax: +46 46-138118