/* * Copyright (C) 2007-2019 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/archive.h" Bu::Archive::Archive() { } Bu::Archive::~Archive() { } Bu::Archive &Bu::operator<<( Bu::Archive &ar, bool p) { ar.write( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator<<( Bu::Archive &ar, char p) { ar.write( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator<<( Bu::Archive &ar, signed char p) { ar.write( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator<<( Bu::Archive &ar, unsigned char p) { ar.write( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator<<( Bu::Archive &ar, signed short p) { ar.write( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator<<( Bu::Archive &ar, unsigned short p) { ar.write( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator<<( Bu::Archive &ar, signed int p) { ar.write( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator<<( Bu::Archive &ar, unsigned int p) { ar.write( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator<<( Bu::Archive &ar, signed long p) { ar.write( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator<<( Bu::Archive &ar, unsigned long p) { ar.write( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator<<( Bu::Archive &ar, signed long long p) { ar.write( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator<<( Bu::Archive &ar, unsigned long long p) { ar.write( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator<<( Bu::Archive &ar, float p) { ar.write( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator<<( Bu::Archive &ar, double p) { ar.write( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator<<( Bu::Archive &ar, long double p) { ar.write( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator>>( Bu::Archive &ar, bool &p) { ar.read( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator>>( Bu::Archive &ar, char &p) { ar.read( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator>>( Bu::Archive &ar, signed char &p) { ar.read( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator>>( Bu::Archive &ar, unsigned char &p) { ar.read( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator>>( Bu::Archive &ar, signed short &p) { ar.read( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator>>( Bu::Archive &ar, unsigned short &p) { ar.read( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator>>( Bu::Archive &ar, signed int &p) { ar.read( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator>>( Bu::Archive &ar, unsigned int &p) { ar.read( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator>>( Bu::Archive &ar, signed long &p) { ar.read( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator>>( Bu::Archive &ar, unsigned long &p) { ar.read( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator>>( Bu::Archive &ar, signed long long &p) { ar.read( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator>>( Bu::Archive &ar, unsigned long long &p) { ar.read( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator>>( Bu::Archive &ar, float &p) { ar.read( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator>>( Bu::Archive &ar, double &p) { ar.read( &p, sizeof(p) ); return ar; } Bu::Archive &Bu::operator>>( Bu::Archive &ar, long double &p) { ar.read( &p, sizeof(p) ); return ar; }