ATLAS Offline Software
Loading...
Searching...
No Matches
SystemTools.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef POOL_SYSTEMTOOLS_H
6#define POOL_SYSTEMTOOLS_H
7
8#include "GaudiKernel/IMessageSvc.h"
9
10namespace pool{
11
16 {
17 public:
19 static const char* GetEnv(const char* key);
20 static std::string GetEnvStr(const std::string& key);
21
23 static bool FileExists(const char* filename);
24
25 static std::string itostr(const int i);
26
27 // get base component of the FC connection string
28 static std::string FCBasename(const std::string& cat);
29
30 // return the output level for PFC
31 static MSG::Level GetOutputLvl();
32
33 // read the PFC_MSGLEVEL env setting
34 static MSG::Level GetOutputLvlFromEnv();
35
36 // initialize the Gaudi framework for standalone executables
37 static bool initGaudi();
38 };
39} // ns pool
40#endif
Misc utility methods.
Definition SystemTools.h:16
static std::string itostr(const int i)
static MSG::Level GetOutputLvl()
static std::string FCBasename(const std::string &cat)
static std::string GetEnvStr(const std::string &key)
static bool initGaudi()
static bool FileExists(const char *filename)
Check if a file exists.
static MSG::Level GetOutputLvlFromEnv()
static const char * GetEnv(const char *key)
Read an environment variable.
pool namespace
Definition libname.h:15