aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-05-12 20:40:20 +0000
committerMike Buland <eichlan@xagasoft.com>2010-05-12 20:40:20 +0000
commit6acfc972c2d5734e62c45b4803ef18101fc1dcb2 (patch)
treefd77ca5eced12a3fe09ed6fe32e5df09682f4326 /src/tests
parent1300301a52bba102fed8b08bdcb668d246973af5 (diff)
downloadlibbu++-6acfc972c2d5734e62c45b4803ef18101fc1dcb2.tar.gz
libbu++-6acfc972c2d5734e62c45b4803ef18101fc1dcb2.tar.bz2
libbu++-6acfc972c2d5734e62c45b4803ef18101fc1dcb2.tar.xz
libbu++-6acfc972c2d5734e62c45b4803ef18101fc1dcb2.zip
The Bu::Archive class now supports arbitrary, named properties via variants.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/archive.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/archive.cpp b/src/tests/archive.cpp
index a0bc78a..08e3b17 100644
--- a/src/tests/archive.cpp
+++ b/src/tests/archive.cpp
@@ -13,12 +13,15 @@ using namespace Bu;
13 13
14int main() 14int main()
15{ 15{
16 File f("test.dat", File::Write ); 16 File f("test.dat", File::WriteNew );
17 Archive ar( f, Archive::save ); 17 Archive ar( f, Archive::save );
18 18
19 Bu::FString s("Hello there"); 19 Bu::FString s("Hello there");
20 ar << s; 20 ar << s;
21 21
22 ar.setProp("hi", 45 );
23 printf("Hi: %d", ar.getProp<int>("hi") );
24
22 return 0; 25 return 0;
23} 26}
24 27