Coding Guidelines

From Theora Playback Library
Revision as of 14:34, 3 January 2010 by Kspes (talk | contribs) (Created page with '== Brackets == void function() { if (something) { } else { } } == Classes == === Naming Convention === * Preceded by '''Theora''…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Brackets

void function()
{
    if (something)
    {
      
    }
    else
    {
    
    }
}

Classes

Naming Convention

  • Preceded by Theora
  • Connected words, each word capitalized:
video manager -> TheoraVideoManager

Member Variables

Connected words, each word capitalized, preceded by 'm':

num worker threads -> mNumWorkerThreads

Member Functions

Connected words, each word exept the first one is capitalized:

decoded audio check -> decodedAudioCheck()