Difference between revisions of "C plus plus version"

From WikiManual
Jump to: navigation, search
(C++ design and coding standards)
 
(C++ design)
Line 3: Line 3:
 
== C++ design ==
 
== C++ design ==
  
I'd go for a Class based approach.
+
=== General concepts ===
 +
 
 +
* Class based approach.
 +
* Portable code.
 +
 
 +
=== Structure ===
 +
 
 +
* Main
 +
** Engine
 +
*** User Interface
 +
*** Darwin (the simulation engine)
 +
**** Veg
 +
**** Tie
 +
**** Robot
 +
***** Sense
 +
 
 +
To be used everywhere:
 +
* Vector_4 (using [http://www.boost.org/libs/numeric/ublas/doc uBLAS])
 +
* Matrix_4 (also using uBLAS)
 +
* Random (using 'srand()' and 'rand()')
 +
* Object (the base class)
  
 
== C++ coding standards ==
 
== C++ coding standards ==

Revision as of 13:36, 30 October 2005

I propose we discuss the C++ design and coding standards in here. A wiki is much handier then a forum or PM's for it.

C++ design

General concepts

  • Class based approach.
  • Portable code.

Structure

  • Main
    • Engine
      • User Interface
      • Darwin (the simulation engine)
        • Veg
        • Tie
        • Robot
          • Sense

To be used everywhere:

  • Vector_4 (using uBLAS)
  • Matrix_4 (also using uBLAS)
  • Random (using 'srand()' and 'rand()')
  • Object (the base class)

C++ coding standards

I would use:

  1. C++
  2. Four spaced tabs
  3. External librairies when possible (ie. Boost)
  4. SDL
  5. ...

See also

RoundTable