The Gaudi Framework  master (fb0007c6)
Loading...
Searching...
No Matches
ApplicationMgr.cpp File Reference
#include "ApplicationMgr.h"
#include "AlgorithmManager.h"
#include "DLLClassManager.h"
#include "ServiceManager.h"
#include <GAUDI_VERSION.h>
#include <GaudiKernel/GaudiException.h>
#include <GaudiKernel/IMessageSvc.h>
#include <GaudiKernel/IRunable.h>
#include <GaudiKernel/IService.h>
#include <GaudiKernel/Message.h>
#include <GaudiKernel/MsgStream.h>
#include <GaudiKernel/ObjectFactory.h>
#include <GaudiKernel/SmartIF.h>
#include <GaudiKernel/StatusCode.h>
#include <GaudiKernel/System.h>
#include <GaudiKernel/Time.h>
#include <GaudiKernel/TypeNameString.h>
#include <TError.h>
#include <TROOT.h>
#include <algorithm>
#include <cassert>
#include <limits>
#include <sstream>
Include dependency graph for ApplicationMgr.cpp:

Go to the source code of this file.

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 39 of file ApplicationMgr.cpp.

◆ ON_VERBOSE

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

Definition at line 40 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 92 of file System.cpp.

329 {
330 char* env;
331 if ( ( env = getenv( var ) ) != nullptr ) {
332 return env;
333 } else {
334 return "UNKNOWN";
335 }
336}

◆ isEnvSet()

bool System::isEnvSet ( const char * var)

Check if an environment variable is set or not.

Definition at line 106 of file System.cpp.

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