11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

90 • Chapter 3: <strong>Programming</strong> with ModulesTo avoid platform-specific differences, a flat directory structure is used.(All the source files reside in the same directory or folder.)shapes.mplShapes Packagepoint.mplsegment.mplcircle.mplsquare.mpltriangle.mplTo define the module that implements this package, use the Maple preprocessorto include the remaining source files at the appropriate point inthe master source file shapes.mpl. A number of $include directives areincluded in shapes.mpl, such as$include$include..."point.mpl""segment.mpl"Splitting a large project into a number of source files makes it easierto manage, and allows several developers to work on a project simultaneously.The source file is divided into shape-specific functionality. Most ofthe functionality for points, for instance, is implemented by source codestored in the file point.mpl.Package Architecture The Shapes package is structured as a modulewith a number of exported procedures. Individual submodules provide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!