- Classes are Uppercase, methods and functions lowerMixedCase.
- We use a modified K&R Style, with 2-space tabs, inserting spaces for tabs.
- Use meaningful variable names, e.g.
measurement
notmsm
.
On Windows it is necessary to explicitly export all functions from the library which should be externally accessible. To do this, include the macro GTSAM_EXPORT
in your class or function definition.
For example:
class GTSAM_EXPORT MyClass { ... };
GTSAM_EXPORT myFunction();
More details here.