Next: About this document ...
Up: 2 Developer Guide
Previous: A. Platform Specific Build
Contents
Subsections
B. Coding Standards and Conventions
This appendix sets out the basic coding standards and conventions used
in Gazebo and libgazebo .
Gazebo is written in a C++.
- Source files are camel-capped; e.g., Pioneer2AT.cc.
- C++ header files are suffixed with .hh, C++ source files are
suffixed with .cc; e.g., Model.hh, Model.cc.
- Directory names are lower case, with the exception of model
directories, which are camel-capped.
Use of the following C++ ``features'' is strongly discouraged:
- Templates and the STL.
- Multiple inheritance.
For maximum compatibility and portability, libgazebo is written in C.
- Source files are lower-case with underscores; e.g., gz_laser.c.
- Header files are suffixed with .h, C source files are
suffixed with .c; e.g., gazebo.h, libgazebo.c.
- Source files for interfaces are prefixed by gz_; e.g.,
gz_position.c.
Next: About this document ...
Up: 2 Developer Guide
Previous: A. Platform Specific Build
Contents
2004-05-31