In the following sections we describe the naming conventions which are used for files, classes, structures, local variables, and global variables.
Variables names follow Java naming conventions. Examples:
lNumberOfPassengers
lSeatAvailability
Function names follow Java naming conventions. Example:
int myFunctionName (const int& a, int b)
Each new word in a class or structure name should always start with a capital letter and the words should be separated with an under-score. Abbreviations are written with capital letters. Examples:
MyClassName
MyStructName
Files are named after the C++ class names.
Source files are named using .cpp
suffix, whereas header files end with .hpp
extension. Examples:
FlightDate.hpp
SegmentDate.cpp
All classes that are configured by input parameters should include:
`setup'
or `set_parameters'
Explicit destructor functions are not required, unless they are needed. It shall not be possible to use any of the other member functions unless the class has been properly initiated with the input parameters.