OpenCine.Coding Guidelines

From apertus wiki
Revision as of 21:35, 5 July 2018 by TofuLynx (talk | contribs) (Created page with "In order to help everyone understand easily the code, it must adhere to a certain style: * Private attributes should be prefixed with an underscore ( _ ). ** float _posX * In...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In order to help everyone understand easily the code, it must adhere to a certain style:

  • Private attributes should be prefixed with an underscore ( _ ).
    • float _posX
  • Interfaces should be prefixed with an upper case I.
    • IProcessor
  • Variables or attributes should start with a lower case letter and methods, classes, or interfaces with an upper case letter,
    • int frameCount, void Process(), class FrameProcessor
  • Curly braces should be always placed, even for single lines in if statements.




See also

Task 635