Software
Documentation
Development
Discovering modelling
Software
Documentation
Development
Discovering modelling
These standards should be followed by all CoastalME developers.
Class in CoastalME begin with C and are formed using CamelCase.
Examples:
Class member names begin with a lower case “m_” followed by variable name using Hungarian notation. A variable name starts with a group of lower-case letters which are mnemonics for the type that variable, followed by whatever name the programmer has chosen; this last part is sometimes distinguished as the given name. The first character of the given name should be capitalized to separate it from the type indicators.
Examples:
Pointers are denoted by a lowercase “p” before the variable type:
An exception to this rule are ofstream type variables being the format of ofstream: VariableNAmeStream
Examples of ofstream variables:
Class members can be public or private.
Class member values should be obtained through accesssor functions. The function should be named with an indicative prefix (i.e. Set, Get,…). Examples of accessor functions for the private member variable m_dBasementElevation would be:
Function names begin with a lowercase letter and are formed using mixed case. The function name should convey something about the purpose of the function.