aboutsummaryrefslogtreecommitdiff
path: root/src/gatsstream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gatsstream.cpp')
-rw-r--r--src/gatsstream.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/gatsstream.cpp b/src/gatsstream.cpp
new file mode 100644
index 0000000..4b9cadf
--- /dev/null
+++ b/src/gatsstream.cpp
@@ -0,0 +1,29 @@
1#include "gats/gatsstream.h"
2#include "gats/object.h"
3
4#include <bu/sio.h>
5#include <bu/nullstream.h>
6using namespace Bu;
7
8Gats::GatsStream::GatsStream( Bu::Stream &rStream ) :
9 rStream( rStream )
10{
11}
12
13Gats::GatsStream::~GatsStream()
14{
15}
16
17Gats::Object *Gats::GatsStream::readObject()
18{
19
20}
21
22void Gats::GatsStream::writeObject( Gats::Object *pObject )
23{
24 Bu::NullStream ns;
25 pObject->write( ns );
26
27 sio << "Object consumed " << ns.tell() << "b." << sio.nl;
28}
29