KLibrary - About

KLibrary is an extension of C++ standardized libraries to provide functionality such as factories, language loaders, and other fairly common functions. The code will be designed to be thread-safe and easy-to-use. The library is fully open source, and is hosted by SourceForge.net.

The current major functions of the library are:

  • A factory
  • A language loader
  • AN XML parser

The factory uses templates to allow for a generic code base which can be used to load in any type of object once, keeping that object in memory for as long as it is used.

The language loader allows for a set of language files to be specified and dynamically load in text from a set ini-style files. The intent of this section of the library is to provide a generic interface through which a developer can expose a set of language files and allow others easily to correct, create, or otherwise modify the text for various languages.

The XML parser provides an interface which can load in any well-formed XML file, though either a string loaded elsewhere or a file, and divide it up into a series of easily accessible objects in a tree structure. In addition, some common non-well formed XML will also be parsed without error.