next up previous contents
Next: Documentation file names Up: Naming conventions Previous: Global function names   Contents

Source code file names

Each C++ class, except for very small classes used by only a small number of other classes, should be placed in a separate .h file, and if necessary a .C file as well. The base name of the files for the class should be identical to the class name itself. Examples:

DisplayDevice.h and DisplayDevice.C
NameList.h (no NameList.C required)
C source code files should have a .c extension (that is, use a lower case c), while C++ files should have a .C extension. ALL header files should have a .h extension, and any Fortran files should have a .f extension. Latex files should end in .tex.