diff options
author | Mike Buland <mbuland@penny-arcade.com> | 2022-04-20 11:14:47 -0700 |
---|---|---|
committer | Mike Buland <mbuland@penny-arcade.com> | 2022-04-20 11:14:47 -0700 |
commit | d10e6a5ca0905f0ef2836cd98aebfb48e7f1e8a3 (patch) | |
tree | 0235e978cc5ffa94d790a4e26b5cf1e5492cab2b /src/unstable | |
parent | 819ff3d27012b4ec4a0a21c150c112a4dd28b14d (diff) | |
download | libbu++-d10e6a5ca0905f0ef2836cd98aebfb48e7f1e8a3.tar.gz libbu++-d10e6a5ca0905f0ef2836cd98aebfb48e7f1e8a3.tar.bz2 libbu++-d10e6a5ca0905f0ef2836cd98aebfb48e7f1e8a3.tar.xz libbu++-d10e6a5ca0905f0ef2836cd98aebfb48e7f1e8a3.zip |
ArchiveBase/Archive renamed. More to come.
Diffstat (limited to 'src/unstable')
-rw-r--r-- | src/unstable/archivestream.cpp | 2 | ||||
-rw-r--r-- | src/unstable/archivestream.h | 6 | ||||
-rw-r--r-- | src/unstable/cachebase.h | 6 | ||||
-rw-r--r-- | src/unstable/myriadcache.h | 4 | ||||
-rw-r--r-- | src/unstable/uuid.cpp | 4 | ||||
-rw-r--r-- | src/unstable/uuid.h | 8 |
6 files changed, 15 insertions, 15 deletions
diff --git a/src/unstable/archivestream.cpp b/src/unstable/archivestream.cpp index 437c183..90a9599 100644 --- a/src/unstable/archivestream.cpp +++ b/src/unstable/archivestream.cpp | |||
@@ -7,7 +7,7 @@ | |||
7 | 7 | ||
8 | #include "bu/archivestream.h" | 8 | #include "bu/archivestream.h" |
9 | 9 | ||
10 | Bu::ArchiveStream::ArchiveStream( Bu::ArchiveBase &ar ) : | 10 | Bu::ArchiveStream::ArchiveStream( Bu::Archive &ar ) : |
11 | ar( ar ), | 11 | ar( ar ), |
12 | iPos( 0 ) | 12 | iPos( 0 ) |
13 | { | 13 | { |
diff --git a/src/unstable/archivestream.h b/src/unstable/archivestream.h index c694037..da6c6b0 100644 --- a/src/unstable/archivestream.h +++ b/src/unstable/archivestream.h | |||
@@ -7,7 +7,7 @@ | |||
7 | #ifndef BU_ARCHIVE_STREAM_H | 7 | #ifndef BU_ARCHIVE_STREAM_H |
8 | #define BU_ARCHIVE_STREAM_H | 8 | #define BU_ARCHIVE_STREAM_H |
9 | 9 | ||
10 | #include "bu/archivebase.h" | 10 | #include "bu/archive.h" |
11 | #include "bu/stream.h" | 11 | #include "bu/stream.h" |
12 | 12 | ||
13 | namespace Bu | 13 | namespace Bu |
@@ -15,7 +15,7 @@ namespace Bu | |||
15 | class ArchiveStream : public Stream | 15 | class ArchiveStream : public Stream |
16 | { | 16 | { |
17 | public: | 17 | public: |
18 | ArchiveStream( Bu::ArchiveBase &ar ); | 18 | ArchiveStream( Bu::Archive &ar ); |
19 | virtual ~ArchiveStream(); | 19 | virtual ~ArchiveStream(); |
20 | 20 | ||
21 | virtual void close(); | 21 | virtual void close(); |
@@ -41,7 +41,7 @@ namespace Bu | |||
41 | virtual Bu::String getLocation() const; | 41 | virtual Bu::String getLocation() const; |
42 | 42 | ||
43 | private: | 43 | private: |
44 | Bu::ArchiveBase &ar; | 44 | Bu::Archive &ar; |
45 | size iPos; | 45 | size iPos; |
46 | }; | 46 | }; |
47 | } | 47 | } |
diff --git a/src/unstable/cachebase.h b/src/unstable/cachebase.h index 7a54465..f986a89 100644 --- a/src/unstable/cachebase.h +++ b/src/unstable/cachebase.h | |||
@@ -9,7 +9,7 @@ | |||
9 | #define BU_CACHE_BASE_H | 9 | #define BU_CACHE_BASE_H |
10 | 10 | ||
11 | #include "bu/string.h" | 11 | #include "bu/string.h" |
12 | #include "bu/archive.h" | 12 | #include "bu/archivebinary.h" |
13 | #include "bu/hash.h" | 13 | #include "bu/hash.h" |
14 | #include "bu/readwritemutex.h" | 14 | #include "bu/readwritemutex.h" |
15 | #include "bu/mutexlocker.h" | 15 | #include "bu/mutexlocker.h" |
@@ -659,7 +659,7 @@ namespace Bu | |||
659 | template<typename obtype> | 659 | template<typename obtype> |
660 | void _cacheObjectSave( Bu::Stream &s, obtype *pObject ) | 660 | void _cacheObjectSave( Bu::Stream &s, obtype *pObject ) |
661 | { | 661 | { |
662 | Bu::Archive ar( s, Bu::Archive::save ); | 662 | Bu::ArchiveBinary ar( s, Bu::Archive::save ); |
663 | ar << *pObject; | 663 | ar << *pObject; |
664 | } | 664 | } |
665 | 665 | ||
@@ -670,7 +670,7 @@ namespace Bu | |||
670 | Bu::Stream &s | 670 | Bu::Stream &s |
671 | ) | 671 | ) |
672 | { | 672 | { |
673 | Bu::Archive ar( s, Bu::Archive::load ); | 673 | Bu::ArchiveBinary ar( s, Bu::Archive::load ); |
674 | obtype *ret = initObject(new obtype()); | 674 | obtype *ret = initObject(new obtype()); |
675 | ar >> *ret; | 675 | ar >> *ret; |
676 | return ret; | 676 | return ret; |
diff --git a/src/unstable/myriadcache.h b/src/unstable/myriadcache.h index 7bba93b..8a1f9db 100644 --- a/src/unstable/myriadcache.h +++ b/src/unstable/myriadcache.h | |||
@@ -29,7 +29,7 @@ namespace Bu | |||
29 | { | 29 | { |
30 | Bu::ReadWriteMutex::ReadLocker l( rwStore ); | 30 | Bu::ReadWriteMutex::ReadLocker l( rwStore ); |
31 | Bu::MyriadStream ms = mStore.openStream( 1 ); | 31 | Bu::MyriadStream ms = mStore.openStream( 1 ); |
32 | Bu::Archive ar( ms, Bu::Archive::load ); | 32 | Bu::ArchiveBinary ar( ms, Bu::ArchiveBinary::load ); |
33 | uint8_t uVer; | 33 | uint8_t uVer; |
34 | ar >> uVer; | 34 | ar >> uVer; |
35 | switch( uVer ) | 35 | switch( uVer ) |
@@ -118,7 +118,7 @@ namespace Bu | |||
118 | return; | 118 | return; |
119 | 119 | ||
120 | Bu::MyriadStream ms = mStore.openStream( 1 ); | 120 | Bu::MyriadStream ms = mStore.openStream( 1 ); |
121 | Bu::Archive ar( ms, Bu::Archive::save ); | 121 | Bu::ArchiveBinary ar( ms, Bu::ArchiveBinary::save ); |
122 | ar << (uint8_t)0 << hIndex; | 122 | ar << (uint8_t)0 << hIndex; |
123 | ar.close(); | 123 | ar.close(); |
124 | ms.setSize( ms.tell() ); | 124 | ms.setSize( ms.tell() ); |
diff --git a/src/unstable/uuid.cpp b/src/unstable/uuid.cpp index c5ff943..6642d75 100644 --- a/src/unstable/uuid.cpp +++ b/src/unstable/uuid.cpp | |||
@@ -170,13 +170,13 @@ template<> bool Bu::__cmpHashKeys<Bu::Uuid>( const Bu::Uuid &a, const Bu::Uuid & | |||
170 | return a == b; | 170 | return a == b; |
171 | } | 171 | } |
172 | 172 | ||
173 | Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, Bu::Uuid &u ) | 173 | Bu::Archive &Bu::operator>>( Bu::Archive &ar, Bu::Uuid &u ) |
174 | { | 174 | { |
175 | ar.read( u.data, 16 ); | 175 | ar.read( u.data, 16 ); |
176 | return ar; | 176 | return ar; |
177 | } | 177 | } |
178 | 178 | ||
179 | Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, const Bu::Uuid &u ) | 179 | Bu::Archive &Bu::operator<<( Bu::Archive &ar, const Bu::Uuid &u ) |
180 | { | 180 | { |
181 | ar.write( u.data, 16 ); | 181 | ar.write( u.data, 16 ); |
182 | return ar; | 182 | return ar; |
diff --git a/src/unstable/uuid.h b/src/unstable/uuid.h index 07ec333..d61a928 100644 --- a/src/unstable/uuid.h +++ b/src/unstable/uuid.h | |||
@@ -15,8 +15,8 @@ namespace Bu | |||
15 | { | 15 | { |
16 | class Uuid | 16 | class Uuid |
17 | { | 17 | { |
18 | friend Bu::ArchiveBase &operator>>( Bu::ArchiveBase &ar, Uuid &u ); | 18 | friend Bu::Archive &operator>>( Bu::Archive &ar, Uuid &u ); |
19 | friend Bu::ArchiveBase &operator<<( Bu::ArchiveBase &ar, const Uuid &u ); | 19 | friend Bu::Archive &operator<<( Bu::Archive &ar, const Uuid &u ); |
20 | public: | 20 | public: |
21 | Uuid(); | 21 | Uuid(); |
22 | Uuid( const Uuid &src ); | 22 | Uuid( const Uuid &src ); |
@@ -65,8 +65,8 @@ namespace Bu | |||
65 | const Uuid &a, const Uuid &b ); | 65 | const Uuid &a, const Uuid &b ); |
66 | 66 | ||
67 | class Formatter; | 67 | class Formatter; |
68 | Bu::ArchiveBase &operator>>( Bu::ArchiveBase &ar, Uuid &u ); | 68 | Bu::Archive &operator>>( Bu::Archive &ar, Uuid &u ); |
69 | Bu::ArchiveBase &operator<<( Bu::ArchiveBase &ar, const Uuid &u ); | 69 | Bu::Archive &operator<<( Bu::Archive &ar, const Uuid &u ); |
70 | Bu::Formatter &operator<<( Bu::Formatter &f, const Uuid &u ); | 70 | Bu::Formatter &operator<<( Bu::Formatter &f, const Uuid &u ); |
71 | }; | 71 | }; |
72 | 72 | ||