HGL::Common::Util Class Reference
[Utility classes]

Miscellaneous utility functions. More...

#include <util.h>

Inheritance diagram for HGL::Common::Util:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

Miscellaneous utility functions.

Author:
Heiko Schäfer <heiko@hgl.rangun.de>

Member Function Documentation

std::string const * Util::getConfigValue ( const std::string &  key  )  [static]

Gets a value from the configuration file.

Parameters:
key the key to search the config value for
Returns:
a pointer to the value or 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.

Parameters:
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.

Parameters:
[in] suffix the suffix to append
[in,out] oFile the filename to append suffix to
Returns:
oFile with suffix appended
Since:
0.5.18

Generated on 9 Apr 2014 for hgl 0.5.26~svn by  doxygen 1.6.1