Posts

Showing posts from December, 2016

Lightweight C++ class library to store program settings (configuration) with Unicode (UTF-8) support

Image
Most programs store their program settings (program configuration) in a settings file.  This lightweight C++ class  (C++ library) was developed to support storing and reading such settings.  Grouping of settings under "sections" is supported. Unicode in (UTF-8 form) is supported for the names of the settings, as well as for string values and section names. It does not use XML.  That was just a design decision to avoid linking XML parsers into the code.  It does use the UTF8-CPP lightweight class  by  Nemanja Trifunovic  (http://utfcpp.sourceforge.net/,         https://sourceforge.net/projects/utfcpp/ ). While this code was written and tested under Visual C++ (Visual Studio), it should be re-usable for all operating systems with little or no modification. The estimated source code size is approximately 800 lines. Disclaimer:   This blog contains software (code), and instructions.  All information is provided "as is" without warranty of any kind, either expressed or i