From fd56cdd21a7c9c944ad189cf91ff24d3c2b0f975 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 20 Apr 2022 14:04:47 -0700 Subject: Gradually moving to better archive structure. It's dragging other new API changes along with it, including use of Blob and Text. --- src/stable/archivebinary.h | 40 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) (limited to 'src/stable/archivebinary.h') diff --git a/src/stable/archivebinary.h b/src/stable/archivebinary.h index 4c12e02..d28e5e7 100644 --- a/src/stable/archivebinary.h +++ b/src/stable/archivebinary.h @@ -77,8 +77,44 @@ namespace Bu virtual ~ArchiveBinary(); virtual void close(); - virtual void write( const void *pData, size_t iSize ); - virtual void read( void *pData, size_t iSize ); + //virtual void write( const void *pData, size_t iSize ); + //virtual void read( void *pData, size_t iSize ); + + virtual void write( bool rData ); + virtual void write( unsigned char rData ); + virtual void write( char rData ); + virtual void write( signed char rData ); + virtual void write( unsigned short rData ); + virtual void write( signed short rData ); + virtual void write( unsigned int rData ); + virtual void write( signed int rData ); + virtual void write( unsigned long rData ); + virtual void write( signed long rData ); + virtual void write( unsigned long long rData ); + virtual void write( signed long long rData ); + virtual void write( float rData ); + virtual void write( double rData ); + virtual void write( long double rData ); + virtual void write( const Bu::Blob &rData ); + virtual void write( const Bu::Text &rData ); + + virtual void read( bool &rData ); + virtual void read( unsigned char &rData ); + virtual void read( char &rData ); + virtual void read( signed char &rData ); + virtual void read( unsigned short &rData ); + virtual void read( signed short &rData ); + virtual void read( unsigned int &rData ); + virtual void read( signed int &rData ); + virtual void read( unsigned long &rData ); + virtual void read( signed long &rData ); + virtual void read( unsigned long long &rData ); + virtual void read( signed long long &rData ); + virtual void read( float &rData ); + virtual void read( double &rData ); + virtual void read( long double &rData ); + virtual void read( Bu::Blob &rData ); + virtual void read( Bu::Text &rData ); /** * For storage, get an ID for the pointer to the object you're going to -- cgit v1.2.3