DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
Environment.hpp
Go to the documentation of this file.
1/*
2 * Environment.h
3 * OksSystem
4 *
5 * Created by Matthias Wiesmann on 11.01.05.
6 * Copyright 2005 CERN. All rights reserved.
7 *
8 */
9
10#ifndef OKSSYSTEM_ENVIRONMENT
11#define OKSSYSTEM_ENVIRONMENT
12
13#include <string>
14#include <map>
15
16namespace OksSystem {
17
24 struct Environment {
25 static std::string get(const std::string &key);
26 static void set(const std::string &key, const std::string & value);
27 static void set(const std::map<std::string,std::string> & values);
28 } ; // Environment
29} // OksSystem
30
31#endif
32
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