summaryrefslogtreecommitdiff
path: root/src/tests/settings.cpp
blob: 2caa015f98b04c93713d39839b9ff65b5e6685a8 (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");

}