summaryrefslogtreecommitdiff
path: root/src/configure.h
blob: a350820c310375c2053924680bae3b9ad5ab5633 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// -*- c++ -*-
// Distributed under the BSD 2-Clause License.
// See accompanying file LICENSE for details.
#pragma once

#include <filesystem>
#include <string>
#include <map>

struct Settings;

extern std::filesystem::path configurationFile;;
extern std::filesystem::path configHeaderFile;

int configure(const Settings& settings, int argc, char* argv[]);

bool hasConfiguration(const std::string& key);
const std::string& getConfiguration(const std::string& key,
                                    const std::string& defaultValue);

const std::map<std::string, std::string>& configuration();

extern const std::map<std::string, std::string> default_configuration;