diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-11-09 16:25:22 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-09 16:25:22 +0000 |
commit | 74dd68ad611d15abf16a65c36a7cfd3f4492930a (patch) | |
tree | 843fed9ba6bb03253a01314afc3b1dfbb2dfd26c /src/integer.cpp | |
parent | d9b407475ae3ebe434b29d9eabdd7d4416e17881 (diff) | |
download | libgats-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.cpp | 39 |
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 | |||
5 | Gats::Integer::Integer() : | ||
6 | iVal( 0 ) | ||
7 | { | ||
8 | } | ||
9 | |||
10 | Gats::Integer::Integer( int64_t iVal ) : | ||
11 | iVal( iVal ) | ||
12 | { | ||
13 | } | ||
14 | |||
15 | Gats::Integer::~Integer() | ||
16 | { | ||
17 | } | ||
18 | |||
19 | Gats::Object *Gats::Integer::clone() const | ||
20 | { | ||
21 | return new Gats::Integer( iVal ); | ||
22 | } | ||
23 | |||
24 | void Gats::Integer::write( Bu::Stream &rOut ) const | ||
25 | { | ||
26 | rOut.write("i", 1 ); | ||
27 | writePackedInt( rOut, iVal ); | ||
28 | } | ||
29 | |||
30 | void Gats::Integer::read( Bu::Stream &rIn, char cType ) | ||
31 | { | ||
32 | readPackedInt( rIn, iVal ); | ||
33 | } | ||
34 | |||
35 | Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Integer &i ) | ||
36 | { | ||
37 | return f << "(int) " << i.getValue(); | ||
38 | } | ||
39 | |||