diff options
author | Mike Buland <eichlan@xagasoft.com> | 2022-04-18 21:58:01 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2022-04-18 21:58:01 -0700 |
commit | 819ff3d27012b4ec4a0a21c150c112a4dd28b14d (patch) | |
tree | 6d38a56cada17155a6d495d50925f91144eff025 /src/stable/archive.cpp | |
parent | 48dc740f752bca80ee761df75422aff5f0d6b075 (diff) | |
download | libbu++-819ff3d27012b4ec4a0a21c150c112a4dd28b14d.tar.gz libbu++-819ff3d27012b4ec4a0a21c150c112a4dd28b14d.tar.bz2 libbu++-819ff3d27012b4ec4a0a21c150c112a4dd28b14d.tar.xz libbu++-819ff3d27012b4ec4a0a21c150c112a4dd28b14d.zip |
ArchiveBase has getProperty and setProperty.
I kind of want to re-engineer the entire archive system...The root
should be able to track a stateful stack of containers such as arrays
and dictionaries as well as support non-binary reads and writes in a
more robust way.
It also still bothers me that it's the only thing in the system with
base in the base class name. I should just change it...it's going to
impact many programs, though.
Diffstat (limited to 'src/stable/archive.cpp')
-rw-r--r-- | src/stable/archive.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stable/archive.cpp b/src/stable/archive.cpp index 31a4ba7..69447fb 100644 --- a/src/stable/archive.cpp +++ b/src/stable/archive.cpp | |||
@@ -87,3 +87,13 @@ void Bu::Archive::readID( const void *ptr, uint32_t id ) | |||
87 | } | 87 | } |
88 | } | 88 | } |
89 | 89 | ||
90 | void Bu::Archive::setProperty( const Bu::Blob &rKey, const Bu::Variant &rValue ) | ||
91 | { | ||
92 | hProps.insert( rKey, rValue ); | ||
93 | } | ||
94 | |||
95 | Bu::Variant Bu::Archive::getProperty( const Bu::Blob &rKey ) const | ||
96 | { | ||
97 | return hProps.get( rKey ); | ||
98 | } | ||
99 | |||