diff options
author | Mike Buland <eichlan@xagasoft.com> | 2022-04-21 10:32:35 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2022-04-21 10:32:35 -0700 |
commit | 23d88aa2812c361d30abefeeb296548698409bf5 (patch) | |
tree | 1fae38f0fccdff7bf8bc8f868bb5533cbe607af9 /src/tests | |
parent | fd56cdd21a7c9c944ad189cf91ff24d3c2b0f975 (diff) | |
download | libbu++-23d88aa2812c361d30abefeeb296548698409bf5.tar.gz libbu++-23d88aa2812c361d30abefeeb296548698409bf5.tar.bz2 libbu++-23d88aa2812c361d30abefeeb296548698409bf5.tar.xz libbu++-23d88aa2812c361d30abefeeb296548698409bf5.zip |
More progress, mostly planning and playing.
I'm trying to find the right design usage patterns for using the archive
system with tagging and lists and dictionaries. Also, are there other
structures that I'm missing?
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/archivetags.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/archivetags.cpp b/src/tests/archivetags.cpp index f0587fd..5c8e0fa 100644 --- a/src/tests/archivetags.cpp +++ b/src/tests/archivetags.cpp | |||
@@ -25,9 +25,9 @@ Bu::Archive &operator<<( Bu::Archive &ar, const SubThing &st ) | |||
25 | { | 25 | { |
26 | Bu::Archive::Dictionary ds( ar ); | 26 | Bu::Archive::Dictionary ds( ar ); |
27 | 27 | ||
28 | return ar | 28 | ar.tag("data") << st.bData |
29 | << ar.tag("data") << st.bData | 29 | ar.tag("name") << st.tName; |
30 | << ar.tag("name") << st.tName; | 30 | return ar; |
31 | } | 31 | } |
32 | 32 | ||
33 | Bu::Archive &operator>>( Bu::Archive &ar, SubThing &st ) | 33 | Bu::Archive &operator>>( Bu::Archive &ar, SubThing &st ) |