aboutsummaryrefslogtreecommitdiff
path: root/src/archive.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-10-24 02:41:56 +0000
committerMike Buland <eichlan@xagasoft.com>2007-10-24 02:41:56 +0000
commitda21dd5dc9cece281c83f3011eb9efbeb5ada45a (patch)
treeed016a2050f4d95cf66906fd983d0b78e817b518 /src/archive.cpp
parentd1770f567321f8b01185cdf974718aea89669a37 (diff)
downloadlibbu++-da21dd5dc9cece281c83f3011eb9efbeb5ada45a.tar.gz
libbu++-da21dd5dc9cece281c83f3011eb9efbeb5ada45a.tar.bz2
libbu++-da21dd5dc9cece281c83f3011eb9efbeb5ada45a.tar.xz
libbu++-da21dd5dc9cece281c83f3011eb9efbeb5ada45a.zip
Tried to get archive operators to recognize pointers, no luck so far.
Diffstat (limited to '')
-rw-r--r--src/archive.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/archive.cpp b/src/archive.cpp
index 7208bae..11c632a 100644
--- a/src/archive.cpp
+++ b/src/archive.cpp
@@ -325,6 +325,20 @@ Bu::Archive &Bu::operator>>(Bu::Archive &s, Bu::Archival &p)
325 return s; 325 return s;
326} 326}
327 327
328Bu::Archive &Bu::operator<<(Bu::Archive &ar, class Bu::Archival *p )
329{
330 printf("Writing a pointer to an archive...\n");
331 ar << *p;
332 return ar;
333}
334
335Bu::Archive &Bu::operator>>(Bu::Archive &ar, class Bu::Archival *p )
336{
337 printf("Reading a pointer to an archive...\n");
338 ar >> *p;
339 return ar;
340}
341
328Bu::Archive &Bu::operator<<( Bu::Archive &ar, std::string &s ) 342Bu::Archive &Bu::operator<<( Bu::Archive &ar, std::string &s )
329{ 343{
330 ar << (uint32_t)s.length(); 344 ar << (uint32_t)s.length();