DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
Environment.hpp
Go to the documentation of this file.
1// DUNE DAQ modification notice:
2// This file has been modified from the original ATLAS system source for the DUNE DAQ project.
3// Fork baseline commit: system-00-00-20 (2020-09-25).
4// Renamed since fork: yes (from system/Environment.h to include/okssystem/Environment.hpp).
5
6/*
7 * Environment.h
8 * OksSystem
9 *
10 * Created by Matthias Wiesmann on 11.01.05.
11 * Copyright 2005 CERN. All rights reserved.
12 *
13 */
14
15#ifndef OKSSYSTEM_ENVIRONMENT
16#define OKSSYSTEM_ENVIRONMENT
17
18#include <string>
19#include <map>
20
21namespace OksSystem {
22
28
29 struct Environment {
30 static std::string get(const std::string &key);
31 static void set(const std::string &key, const std::string & value);
32 static void set(const std::map<std::string,std::string> & values);
33 } ; // Environment
34} // OksSystem
35
36#endif
37
Wrapper for environnement variable manipulation.
static std::string get(const std::string &key)
get a environnement variable
static void set(const std::string &key, const std::string &value)
sets an environnement variable