2 #include "pol_global_config.h" 3 #include "pol_revision.h" 26 m_programName = programName;
28 std::string exeDir = programName;
29 std::string::size_type bslashpos;
30 while ( std::string::npos != ( bslashpos = exeDir.find(
'\\' ) ) )
32 exeDir.replace( bslashpos, 1, 1,
'/' );
35 std::string::size_type pos = exeDir.find_last_of(
'/' );
36 if ( pos != std::string::npos )
41 m_programDir = exeDir;
56 return POL_BUILD_TARGET;
61 return POL_BUILD_DATETIME;
static std::string m_programName
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
static std::string programDir()
Returns the directory of the currently running program.
static std::string build_target()
static std::string build_datetime()