The Gaudi Framework  master (29688f1e)
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 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; }