diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-08-24 20:11:04 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-08-24 20:11:04 +0000 |
commit | d7d2c0929a5d7871e913451fd542e03ae4561183 (patch) | |
tree | a5ca60568edc265e1c4f657706709db7d27f50bc /src/tests/settings.cpp | |
parent | da642482dee91921fc16786208aa497d3ee31d94 (diff) | |
download | libbu++-d7d2c0929a5d7871e913451fd542e03ae4561183.tar.gz libbu++-d7d2c0929a5d7871e913451fd542e03ae4561183.tar.bz2 libbu++-d7d2c0929a5d7871e913451fd542e03ae4561183.tar.xz libbu++-d7d2c0929a5d7871e913451fd542e03ae4561183.zip |
Taf isn't really...the best backend for this now, I need some more fixes there
first, so next up we need the windows registry backend.
Diffstat (limited to 'src/tests/settings.cpp')
-rw-r--r-- | src/tests/settings.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/settings.cpp b/src/tests/settings.cpp index 0738cb7..2caa015 100644 --- a/src/tests/settings.cpp +++ b/src/tests/settings.cpp | |||
@@ -1,9 +1,18 @@ | |||
1 | #include "bu/settings.h" | 1 | #include "bu/settings.h" |
2 | #include "bu/sio.h" | ||
3 | |||
4 | using namespace Bu; | ||
2 | 5 | ||
3 | int main() | 6 | int main() |
4 | { | 7 | { |
5 | Bu::Settings s("Xagasoft", "Settings"); | 8 | Bu::Settings s("Xagasoft", "Settings"); |
6 | 9 | ||
10 | sio << s.get("Something", "BAD").get() << sio.nl; | ||
11 | sio << s.get("general/path", "BAD").get() << sio.nl; | ||
12 | sio << s.get("general/magic", "BAD").get() << sio.nl; | ||
13 | |||
14 | s.set("Something", "bob"); | ||
15 | s.set("general/path", "E:\\Place"); | ||
7 | 16 | ||
8 | } | 17 | } |
9 | 18 | ||