File naming and programming rules

From Mca2
Revision as of 11:03, 11 January 2006 by Scholl (talk | contribs) (Programming rules)
Jump to navigationJump to search

The following rules are obligatory for all mca2 core developers. They are recommended to all users of mca2.

Please have a look into the MCA2 Programmers Guide for informations on this topic.

File Names

  • If a file contains only one class (this is the usual case), the file must have the same name as the class:
tThisIsAClass.h
tThisIsAClass.c
tThisIsAClass.cc
mThisIsAModule.h
gThisIsAGroup.C
  • If a file contains a template, the filename has to end with a 'T':
tThisIsATemplateT.h
  • Parts start with a 'p':
pReplyValues.C