The Gaudi Framework master (934d2c3c)
Loading...
Searching...
No Matches
ApplicationMgr.cpp File Reference
Include dependency graph for ApplicationMgr.cpp:

Go to the source code of this file.

Classes

class  ApplicationMgr
 The Application Manager class. More...

Macros

#define ON_DEBUG   if ( m_outputLevel <= MSG::DEBUG )
#define ON_VERBOSE   if ( m_outputLevel <= MSG::VERBOSE )

Functions

GAUDI_API std::string getEnv (const char *var)
 get a particular environment variable (returning "UNKNOWN" if not set)
GAUDI_API bool isEnvSet (const char *var)
 Check if an environment variable is set or not.

Macro Definition Documentation

◆ ON_DEBUG

#define ON_DEBUG   if ( m_outputLevel <= MSG::DEBUG )

Definition at line 357 of file ApplicationMgr.cpp.

◆ ON_VERBOSE

#define ON_VERBOSE   if ( m_outputLevel <= MSG::VERBOSE )

Definition at line 358 of file ApplicationMgr.cpp.

Function Documentation

◆ getEnv()

std::string System::getEnv ( const char * var)

get a particular environment variable (returning "UNKNOWN" if not set)

get a particular env var, return "UNKNOWN" if not defined

Definition at line 80 of file System.cpp.

314 {
315 char* env;
316 if ( ( env = getenv( var ) ) != nullptr ) {
317 return env;
318 } else {
319 return "UNKNOWN";
320 }
321}

◆ isEnvSet()

bool System::isEnvSet ( const char * var)

Check if an environment variable is set or not.

Definition at line 94 of file System.cpp.

334{ return getenv( var ) != nullptr; }