Basic classes ported from Vala to C++.