summaryrefslogtreecommitdiff
path: root/cpp/pom.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/pom.hpp')
-rw-r--r--cpp/pom.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/pom.hpp b/cpp/pom.hpp
index e3c66d4..bf16a29 100644
--- a/cpp/pom.hpp
+++ b/cpp/pom.hpp
@@ -64,17 +64,17 @@ public:
class Configuration {
public:
Configuration();
+ Configuration(std::string_view filename, Reader &source, const Settings *settings = nullptr);
+ Configuration(std::string_view filename, std::istream &stream, const Settings *settings = nullptr);
+ Configuration(std::string_view path, const Settings *settings = nullptr);
+ Configuration(std::string_view filename, std::string_view string, const Settings *settings = nullptr);
~Configuration();
std::optional<std::string_view> get(std::string_view key) const;
std::string_view get_or_default(std::string_view key, std::string_view dflt) const;
Configuration section(std::string_view name) const;
void merge(const Configuration &other);
- static Configuration load(std::string_view filename, Reader &source, const Settings *settings = nullptr);
- static Configuration load(std::string_view filename, std::istream &stream, const Settings *settings = nullptr);
- static Configuration load(std::string_view path, const Settings *settings = nullptr);
- static Configuration load(std::string_view filename, std::string_view string, const Settings *settings = nullptr);
private:
- explicit Configuration(void *c);
+ explicit Configuration(void *c): C(c) {}
void *C;
};