The Gaudi Framework  master (b9786168)
Loading...
Searching...
No Matches
DetDataSvc.cpp File Reference
Include dependency graph for DetDataSvc.cpp:

Go to the source code of this file.

Macros

#define DETECTORDATASVC_DETDATASVC_CPP
 
#define ON_DEBUG   if ( msgLevel( MSG::DEBUG ) )
 
#define ON_VERBOSE   if ( msgLevel( MSG::VERBOSE ) )
 
#define DEBMSG   ON_DEBUG debug()
 
#define VERMSG   ON_VERBOSE 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

◆ DEBMSG

#define DEBMSG   ON_DEBUG debug()

Definition at line 29 of file DetDataSvc.cpp.

◆ DETECTORDATASVC_DETDATASVC_CPP

#define DETECTORDATASVC_DETDATASVC_CPP

Definition at line 11 of file DetDataSvc.cpp.

◆ ON_DEBUG

#define ON_DEBUG   if ( msgLevel( MSG::DEBUG ) )

Definition at line 26 of file DetDataSvc.cpp.

◆ ON_VERBOSE

#define ON_VERBOSE   if ( msgLevel( MSG::VERBOSE ) )

Definition at line 27 of file DetDataSvc.cpp.

◆ VERMSG

#define VERMSG   ON_VERBOSE verbose()

Definition at line 30 of file DetDataSvc.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; }