aboutsummaryrefslogtreecommitdiff
path: root/c++-qt/src/null.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-06-11 04:05:22 +0000
committerMike Buland <eichlan@xagasoft.com>2012-06-11 04:05:22 +0000
commit380b36be3352cd9a5c93dbd67db25346166a8547 (patch)
treef69613e7b6238744c34af6dc14d6feb68a4f6706 /c++-qt/src/null.cpp
parent3905f9962bbfb312c3804ff9c7b7d1e0fa203cbc (diff)
downloadlibgats-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.cpp31
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
5Gats::Null::Null()
6{
7}
8
9Gats::Null::~Null()
10{
11}
12
13Gats::Object *Gats::Null::clone() const
14{
15 return new Gats::Null();
16}
17
18void Gats::Null::write( QIODevice &rOut ) const
19{
20 rOut.write("n", 1 );
21}
22
23void Gats::Null::read( QIODevice &rIn, char cType )
24{
25}
26/*
27Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Null &b )
28{
29 return f << "(bool) " << b.getValue();
30}
31*/