libsgfc++ 2.0.1
A C++ library that uses SGFC to read and write SGF (Smart Game Format) data.
|
this
to distinguish them from variables that are local to a method.firstChild
member variable should have a GetFirstChild
and SetFirstChild
getter/setter).Foo* foo
, not Foo *foo
.if
- or switch
-clauses that use only one-line statements. Readability is the most important aspect here - sometimes the right use of braces can create a visual pattern that immediately tells the reader how the program flows.#pragma once
. This pragma is well supported by all major compilers and vastly preferrable over preprocessor macro guards.const
unless there is a reason not to.override
to declare overrides.throw std::invalid_argument()
not throw new std::invalid_argument()
).