Loading...
Searching...
No Matches
EnvHelpers.hpp
Go to the documentation of this file.
1/*
2** This file is part of eOn.
3**
4** SPDX-License-Identifier: BSD-3-Clause
5**
6** Copyright (c) 2010--present, eOn Development Team
7** All rights reserved.
8**
9** Repo:
10** https://github.com/TheochemUI/eOn
11*/
12#pragma once
13#include <string>
14
15namespace eonc {
16
17namespace helpers {
18[[nodiscard]] std::string get_value_from_env_or_param(
19 const char *env_variable, const std::string &param_value,
20 const std::string &default_value = "",
21 const std::string &warning_message = "", const bool is_mandatory = false);
22}
23
24} // namespace eonc
std::string get_value_from_env_or_param(const char *env_variable, const std::string &param_value, const std::string &default_value, const std::string &warning_message, const bool is_mandatory)
Definition EnvHelpers.cc:7
RAII resource manager for the ARTn C library with global synchronization.