TableInterface.hpp - RyanBabij/WorldSim GitHub Wiki
A lot of stuff in my games ends up needing to be displayed in one or more tables. Therefore there is a Table Interface. This simply provides 2 functions for querying information about an object. Then I may reference these objects in a Table class and they can automatically be tabulated.
It uses std::string right now. There's probably a better way but this current system is easy to understand and seems to work well even with large tables with millions of entries.