From 74dd68ad611d15abf16a65c36a7cfd3f4492930a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 9 Nov 2012 16:25:22 +0000 Subject: Made the repo less libbu++-centric. --- src/tests/dump.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 src/tests/dump.cpp (limited to 'src/tests/dump.cpp') diff --git a/src/tests/dump.cpp b/src/tests/dump.cpp deleted file mode 100644 index e0dcb52..0000000 --- a/src/tests/dump.cpp +++ /dev/null @@ -1,30 +0,0 @@ -#include -#include -#include -#include - -using namespace Bu; - -int main( int argc, char *argv[] ) -{ - File fIn( argv[1], File::Read ); - Gats::GatsStream gsIn( fIn ); - - for(;;) - { - sio << "Reading from file position: " << fIn.tell() << sio.nl; - Gats::Object *pObj = gsIn.readObject(); - if( !pObj ) - { - if( gsIn.hasReadBuffer() ) - { - sio << "Premature end of stream detected, have " - << gsIn.getReadBufferSize() << "b." << sio.nl; - } - return 0; - } - - sio << *pObj << sio.nl; - } -} - -- cgit v1.2.3