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