diff options
Diffstat (limited to 'c++-qt/src/integer.cpp')
-rw-r--r-- | c++-qt/src/integer.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/c++-qt/src/integer.cpp b/c++-qt/src/integer.cpp new file mode 100644 index 0000000..bb6da80 --- /dev/null +++ b/c++-qt/src/integer.cpp | |||
@@ -0,0 +1,32 @@ | |||
1 | #include "gats-qt/integer.h" | ||
2 | |||
3 | Gats::Integer::Integer() : | ||
4 | iVal( 0 ) | ||
5 | { | ||
6 | } | ||
7 | |||
8 | Gats::Integer::Integer( int64_t iVal ) : | ||
9 | iVal( iVal ) | ||
10 | { | ||
11 | } | ||
12 | |||
13 | Gats::Integer::~Integer() | ||
14 | { | ||
15 | } | ||
16 | |||
17 | void Gats::Integer::write( QIODevice &rOut ) const | ||
18 | { | ||
19 | rOut.write("i", 1 ); | ||
20 | writePackedInt( rOut, iVal ); | ||
21 | } | ||
22 | |||
23 | void Gats::Integer::read( QIODevice &rIn, char cType ) | ||
24 | { | ||
25 | readPackedInt( rIn, iVal ); | ||
26 | } | ||
27 | /* | ||
28 | Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Integer &i ) | ||
29 | { | ||
30 | return f << "(int) " << i.getValue(); | ||
31 | } | ||
32 | */ | ||