blob: 0a7ef51a38ae22884ab363b0a2ea22a2e50420ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <pom.hpp>
#include <iostream>
int main(void) {
try {
pom::Configuration conf = pom::Configuration("conf.pom");
auto indentation_type = conf.get("indentation-type");
if (indentation_type.has_value())
std::cout << "Indenting with " << indentation_type.value() << "\n";
else
std::cout << "No indentation type set!\n";
} catch (pom::Error &error) {
std::cerr << error.what() << "\n";
}
}
|