C++: Add FormatReader interface and associated classes