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

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

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

int configure(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;