Kea 3.1.1
env_var_wrapper.h
Go to the documentation of this file.
1// Copyright (C) 2025 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef ENV_VAR_WRAPPER_H
8#define ENV_VAR_WRAPPER_H
9
10#include <string>
11
12namespace isc {
13namespace test {
14
18public:
23 EnvVarWrapper(const std::string& name);
24
30
32 std::string getOriginalValue() const;
33
35 std::string getValue() const;
36
41 void setValue(const std::string value = "");
42
43private:
45 std::string name_;
46
49 std::string original_value_;
50};
51
52} // end of isc::test namespace
53} // end of isc namespace
54
55#endif // ENV_VAR_WRAPPER_H
EnvVarWrapper(const std::string &name)
Constructor.
void setValue(const std::string value="")
Sets the current value of the env variable.
std::string getOriginalValue() const
Fetches the original value of the env variable.
std::string getValue() const
Fetches the current value of the env variable.
Defines the logger used by the top-level component of kea-lfc.