Extension of the SIFEL code

Basic rules for writing C++ code

  • From standard types only long, double and char types may be used in the new code. When the other party library or code is used the rest standard types may be used for compatibility.
  • Classes and structures may be used, but the inheritance must not be used. From the other characters of C++ the templates and exceptions must not be used.
  • Inline functions should be used instead macros.
  • Naming convention for local variables, function names, function parameters and user defined types is using lowercase letters and underscores.
  • Naming convention for global variables if using uppercase for the first letter and the rest letters must be lowercase.
  • Naming convention for macros is __NAME__ where NAME is the name of macro.
  • Every function should have commentary placed in the C file by the function header.
    Commentary should have following structure :
    • Detailed description of the function
    • Detailed description all of the parameters
    • Detailed description of the function output

Extension of MEFEL module


Image