If speed is less of an issue, you could throw everything into an STL map that would map strings to function/method pointers. By converting everything to a string, you aren't married to the notion of fixed-sized data.
----
Scott J. Kleper
Author, "Professional C++"
(Wrox, 2005)
|