diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-06-22 20:58:33 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-06-22 20:58:33 +0000 |
commit | 615d2ec911dd3eb2b5ed0290038bdb5e6fa0eab2 (patch) | |
tree | c89eb360c32f78cc3e3d64a00397253cf3195aad /c++-qt/src/gatsstream.cpp | |
parent | 584fc54f0e603d518970d7655c5072997ee24da1 (diff) | |
download | libgats-615d2ec911dd3eb2b5ed0290038bdb5e6fa0eab2.tar.gz libgats-615d2ec911dd3eb2b5ed0290038bdb5e6fa0eab2.tar.bz2 libgats-615d2ec911dd3eb2b5ed0290038bdb5e6fa0eab2.tar.xz libgats-615d2ec911dd3eb2b5ed0290038bdb5e6fa0eab2.zip |
Added super handy readAllObjects slot.
Diffstat (limited to 'c++-qt/src/gatsstream.cpp')
-rw-r--r-- | c++-qt/src/gatsstream.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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() | |||
69 | return pObj; | 69 | return pObj; |
70 | } | 70 | } |
71 | 71 | ||
72 | void Gats::GatsStream::readAllObjects() | ||
73 | { | ||
74 | while( readObject() ) { } | ||
75 | } | ||
76 | |||
72 | void Gats::GatsStream::writeObject( Gats::Object *pObject ) | 77 | void Gats::GatsStream::writeObject( Gats::Object *pObject ) |
73 | { | 78 | { |
74 | QIODevice *pTmp; | 79 | QIODevice *pTmp; |