mirror of
https://github.com/amnezia-vpn/win-split-tunnel.git
synced 2026-05-17 00:06:00 +03:00
26 lines
377 B
C++
26 lines
377 B
C++
#pragma once
|
|
|
|
#include <filesystem>
|
|
#include <string>
|
|
#include <libcommon/string.h>
|
|
|
|
using common::string::KeyValuePairs;
|
|
|
|
class Settings
|
|
{
|
|
public:
|
|
|
|
Settings(KeyValuePairs values)
|
|
: m_values(std::move(values))
|
|
{
|
|
}
|
|
|
|
static Settings FromFile(const std::filesystem::path &filename);
|
|
|
|
const std::wstring &get(const std::wstring &key);
|
|
|
|
private:
|
|
|
|
KeyValuePairs m_values;
|
|
};
|