From 469bbcf0701e1eb8a6670c23145b0da87357e178 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 25 Mar 2012 20:00:08 +0000 Subject: Code is all reorganized. We're about ready to release. I should write up a little explenation of the arrangement. --- src/stable/archivebase.cpp | 197 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 197 insertions(+) create mode 100644 src/stable/archivebase.cpp (limited to 'src/stable/archivebase.cpp') diff --git a/src/stable/archivebase.cpp b/src/stable/archivebase.cpp new file mode 100644 index 0000000..d00b1a5 --- /dev/null +++ b/src/stable/archivebase.cpp @@ -0,0 +1,197 @@ +/* + * Copyright (C) 2007-2011 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + +#include "bu/archivebase.h" + +Bu::ArchiveBase::ArchiveBase() +{ +} + +Bu::ArchiveBase::~ArchiveBase() +{ +} + +Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, bool p) +{ + ar.write( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, char p) +{ + ar.write( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed char p) +{ + ar.write( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned char p) +{ + ar.write( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed short p) +{ + ar.write( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned short p) +{ + ar.write( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed int p) +{ + ar.write( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned int p) +{ + ar.write( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed long p) +{ + ar.write( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned long p) +{ + ar.write( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, signed long long p) +{ + ar.write( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, unsigned long long p) +{ + ar.write( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, float p) +{ + ar.write( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, double p) +{ + ar.write( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator<<( Bu::ArchiveBase &ar, long double p) +{ + ar.write( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, bool &p) +{ + ar.read( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, char &p) +{ + ar.read( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed char &p) +{ + ar.read( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned char &p) +{ + ar.read( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed short &p) +{ + ar.read( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned short &p) +{ + ar.read( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed int &p) +{ + ar.read( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned int &p) +{ + ar.read( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed long &p) +{ + ar.read( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned long &p) +{ + ar.read( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, signed long long &p) +{ + ar.read( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, unsigned long long &p) +{ + ar.read( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, float &p) +{ + ar.read( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, double &p) +{ + ar.read( &p, sizeof(p) ); + return ar; +} + +Bu::ArchiveBase &Bu::operator>>( Bu::ArchiveBase &ar, long double &p) +{ + ar.read( &p, sizeof(p) ); + return ar; +} + -- cgit v1.2.3