Porting the Styles database to C++