aboutsummaryrefslogtreecommitdiff
path: root/src/tests/settings.cpp
blob: cf998ed1cbeb23cc6122f886362152bd0e1766c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "bu/settings.h"
#include "bu/sio.h"

using namespace Bu;

int main()
{
    Bu::Settings s("Xagasoft", "Settings");

    sio << s.get("Something", "BAD").get() << sio.nl;
    sio << s.get("general/path", "BAD").get() << sio.nl;
    sio << s.get("general/magic", "BAD").get() << sio.nl;

    s.set("Something", "bob");
    s.set("general/path", "E:\\Place");

}