aboutsummaryrefslogtreecommitdiff
path: root/src/integer.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-11-09 16:25:22 +0000
committerMike Buland <eichlan@xagasoft.com>2012-11-09 16:25:22 +0000
commit74dd68ad611d15abf16a65c36a7cfd3f4492930a (patch)
tree843fed9ba6bb03253a01314afc3b1dfbb2dfd26c /src/integer.cpp
parentd9b407475ae3ebe434b29d9eabdd7d4416e17881 (diff)
downloadlibgats-74dd68ad611d15abf16a65c36a7cfd3f4492930a.tar.gz
libgats-74dd68ad611d15abf16a65c36a7cfd3f4492930a.tar.bz2
libgats-74dd68ad611d15abf16a65c36a7cfd3f4492930a.tar.xz
libgats-74dd68ad611d15abf16a65c36a7cfd3f4492930a.zip
Made the repo less libbu++-centric.
Diffstat (limited to 'src/integer.cpp')
-rw-r--r--src/integer.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/integer.cpp b/src/integer.cpp
deleted file mode 100644
index e89ac1d..0000000
--- a/src/integer.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
1#include "gats/integer.h"
2
3#include <bu/formatter.h>
4
5Gats::Integer::Integer() :
6 iVal( 0 )
7{
8}
9
10Gats::Integer::Integer( int64_t iVal ) :
11 iVal( iVal )
12{
13}
14
15Gats::Integer::~Integer()
16{
17}
18
19Gats::Object *Gats::Integer::clone() const
20{
21 return new Gats::Integer( iVal );
22}
23
24void Gats::Integer::write( Bu::Stream &rOut ) const
25{
26 rOut.write("i", 1 );
27 writePackedInt( rOut, iVal );
28}
29
30void Gats::Integer::read( Bu::Stream &rIn, char cType )
31{
32 readPackedInt( rIn, iVal );
33}
34
35Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Integer &i )
36{
37 return f << "(int) " << i.getValue();
38}
39