From 615d2ec911dd3eb2b5ed0290038bdb5e6fa0eab2 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 22 Jun 2012 20:58:33 +0000 Subject: Added super handy readAllObjects slot. --- c++-qt/src/gatsstream.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'c++-qt/src/gatsstream.cpp') diff --git a/c++-qt/src/gatsstream.cpp b/c++-qt/src/gatsstream.cpp index 3874de2..920b2d6 100644 --- a/c++-qt/src/gatsstream.cpp +++ b/c++-qt/src/gatsstream.cpp @@ -69,6 +69,11 @@ Gats::Object *Gats::GatsStream::readObject() return pObj; } +void Gats::GatsStream::readAllObjects() +{ + while( readObject() ) { } +} + void Gats::GatsStream::writeObject( Gats::Object *pObject ) { QIODevice *pTmp; -- cgit v1.2.3