Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 803
News FAQ
Search Home


next up previous contents index
Next: Include files Up: Code Organization Previous: Code Organization

Classes

Every class will have a header file,6.1 an implementation file,6.2 a test program 6.3 and (optionally) a demo program. Very closely related classes6.4may sometimes be combined into single header and implementation files.6.5

All files shall follow the latest template file as a guide for the standard layout.

It is sometimes advisable to separate the implementation into different files. Examples are to separate templated and non-templated methods, and when a sub-set of the methods is often used. Such implementation files have in general names like name2.cc etc. See code/aips/implement/Arrays/Array2.cc for an example.

The test program(s) shall exercise every member function, every exception, and cover at least 90% of the lines of code in the implementation file.6.6


next up previous contents index
Next: Include files Up: Code Organization Previous: Code Organization   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2004-08-30