From 6acfc972c2d5734e62c45b4803ef18101fc1dcb2 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 12 May 2010 20:40:20 +0000 Subject: The Bu::Archive class now supports arbitrary, named properties via variants. --- src/tests/archive.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tests') 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; int main() { - File f("test.dat", File::Write ); + File f("test.dat", File::WriteNew ); Archive ar( f, Archive::save ); Bu::FString s("Hello there"); ar << s; + ar.setProp("hi", 45 ); + printf("Hi: %d", ar.getProp("hi") ); + return 0; } -- cgit v1.2.3