diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-06-11 04:05:22 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-06-11 04:05:22 +0000 |
commit | 380b36be3352cd9a5c93dbd67db25346166a8547 (patch) | |
tree | f69613e7b6238744c34af6dc14d6feb68a4f6706 /c++-qt/src/null.cpp | |
parent | 3905f9962bbfb312c3804ff9c7b7d1e0fa203cbc (diff) | |
download | libgats-380b36be3352cd9a5c93dbd67db25346166a8547.tar.gz libgats-380b36be3352cd9a5c93dbd67db25346166a8547.tar.bz2 libgats-380b36be3352cd9a5c93dbd67db25346166a8547.tar.xz libgats-380b36be3352cd9a5c93dbd67db25346166a8547.zip |
All languages now support Null except for python and php, python is proving
slightly trickier.
Diffstat (limited to '')
-rw-r--r-- | c++-qt/src/null.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/c++-qt/src/null.cpp b/c++-qt/src/null.cpp new file mode 100644 index 0000000..f259887 --- /dev/null +++ b/c++-qt/src/null.cpp | |||
@@ -0,0 +1,31 @@ | |||
1 | #include "gats-qt/null.h" | ||
2 | |||
3 | #include <QIODevice> | ||
4 | |||
5 | Gats::Null::Null() | ||
6 | { | ||
7 | } | ||
8 | |||
9 | Gats::Null::~Null() | ||
10 | { | ||
11 | } | ||
12 | |||
13 | Gats::Object *Gats::Null::clone() const | ||
14 | { | ||
15 | return new Gats::Null(); | ||
16 | } | ||
17 | |||
18 | void Gats::Null::write( QIODevice &rOut ) const | ||
19 | { | ||
20 | rOut.write("n", 1 ); | ||
21 | } | ||
22 | |||
23 | void Gats::Null::read( QIODevice &rIn, char cType ) | ||
24 | { | ||
25 | } | ||
26 | /* | ||
27 | Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Null &b ) | ||
28 | { | ||
29 | return f << "(bool) " << b.getValue(); | ||
30 | } | ||
31 | */ | ||