Pol  Revision:f37d500
ProgramConfig.h
Go to the documentation of this file.
1 #ifndef CLIB_PROGRAM_CONFIG_H
2 #define CLIB_PROGRAM_CONFIG_H
3 
4 #include <string>
5 
6 namespace Pol
7 {
8 namespace Clib
9 {
11 {
12 public:
13  ProgramConfig();
14  virtual ~ProgramConfig();
15 
19  static std::string programName();
20 
24  static std::string programDir();
25 
26  static std::string build_target();
27  static std::string build_datetime();
31  static void configureProgramEnvironment( const std::string& programName );
32 
33 private:
34  static std::string m_programName;
35  static std::string m_programDir;
36 };
37 }
38 } // namespaces
39 
40 #define PROG_CONFIG Pol::Clib::ProgramConfig
41 
42 #endif // CLIB_PROGRAM_CONFIG_H
static std::string m_programName
Definition: ProgramConfig.h:34
static std::string programName()
Returns the name of the currently running program.
static void configureProgramEnvironment(const std::string &programName)
Configures the bug reporting system.
static std::string m_programDir
Definition: ProgramConfig.h:35
static std::string programDir()
Returns the directory of the currently running program.
static std::string build_target()
Definition: berror.cpp:12
static std::string build_datetime()