Tuesday, February 26, 2008

SVN r36/37: Settings

I added Settings, a singleton class that stores key/value pairs on a global basis. So far, I've added std::string and std::wstring values. Keys are always std::strings (or std::wstrings, thanks to the magic of overloading.)

I'm sorely disappointed in the STL. There's no standard way to tokenize std::strings! My meager improvisation is lacking, I'm sure, but it gets the job done. Console now has a slight idea of how to get and set values for keys.

TODO: Give Console some global functions, and also a nice 15pt monospace font.

~ C.

No comments: