The start into successfully developing applications based on certain toolkits is vastly simplified by experimenting with tiny example applications which demonstrate the utilization of these toolkits with a minimum of overhead. Therefore this appendix chapter describes the structure of the source code of an Algorithm Library application demonstrating the definition and usage of MDL extension libraries from both within the application source code and an MDL input deck.
Fig. A.1 depicts the recommended file system structure of such an application. The VMAKE project description files and the source code of the application body should be placed into the root (project) directory. For each of the Parameter, function, and Model extension libraries an own sub directory of the project directory tree is used. These directories contain the necessary VMAKE makefiles, UNFUG tuple and C++ source code files files with the declarations and definitions of the required functions and C++] classes as described in Sections 188.8.131.52 to 2.4.
The following sections describe the central source code fragments of a tiny function plotting program. The design of this application has been chosen to allow for the demonstration of the definition of Parameters and Models in C++, the definition of all types of MDL extension libraries and the access to these structures from C++ applications and MDL input decks. In addition to these goals the size of the source code examples is restricted to a minimum which shall serve as a starting point for own extensions and developments, but in no way is thought to present a suggestive design for plotting programs.