polserver/pol-core/clib/Program/ProgramConfig.h

43 lines
855 B
C
Raw Permalink Normal View History

#ifndef CLIB_PROGRAM_CONFIG_H
#define CLIB_PROGRAM_CONFIG_H
#include <string>
namespace Pol
{
namespace Clib
{
class ProgramConfig
{
public:
ProgramConfig() = default;
virtual ~ProgramConfig() = default;
/**
* @brief Returns the name of the currently running program
*/
static std::string programName();
/**
* @brief Returns the directory of the currently running program
*/
static std::string programDir();
static std::string build_target();
static std::string build_datetime();
/**
* @brief Configures the bug reporting system
*/
2016-12-15 16:59:58 +01:00
static void configureProgramEnvironment( const std::string& programName );
private:
static std::string m_programName;
static std::string m_programDir;
};
} // namespace Clib
} // namespace Pol
#define PROG_CONFIG Pol::Clib::ProgramConfig
#endif // CLIB_PROGRAM_CONFIG_H