summaryrefslogtreecommitdiff
path: root/src/configure.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/configure.h')
-rw-r--r--src/configure.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/configure.h b/src/configure.h
new file mode 100644
index 0000000..95b6765
--- /dev/null
+++ b/src/configure.h
@@ -0,0 +1,19 @@
+// -*- c++ -*-
+#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;