Miscellaneous utility functions. More...
#include <util.h>

Static Public Member Functions | |
| static std::string const * | getConfigValue (const std::string &key) |
| Gets a value from the configuration file. | |
| static void | logWarningCount (const IApplication *const app=0L) |
| Logs the amount of WARNINGs already issued. | |
| static std::string & | suffixAppender (const char *suffix, std::string &oFile) _PURE |
| Appends a suffix to a filename. | |
Miscellaneous utility functions.
| std::string const * Util::getConfigValue | ( | const std::string & | key | ) | [static] |
Gets a value from the configuration file.
| key | the key to search the config value for |
NULL if there is no such value for key | void Util::logWarningCount | ( | const IApplication *const | app = 0L |
) | [static] |
Logs the amount of WARNINGs already issued.
| app | if NULL (default) log as warning, else as notification |
| std::string & Util::suffixAppender | ( | const char * | suffix, | |
| std::string & | oFile | |||
| ) | [static] |
Appends a suffix to a filename.
The suffix is appended to ofile if it hasn't already that suffix. The comparision if ofile already has suffix appended is done case insensitively.
| [in] | suffix | the suffix to append |
| [in,out] | oFile | the filename to append suffix to |
oFile with suffix appended
1.6.1