aboutsummaryrefslogtreecommitdiff
path: root/c++-qt/src/object.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-11-09 17:22:33 +0000
committerMike Buland <eichlan@xagasoft.com>2012-11-09 17:22:33 +0000
commit29e854354982dcdd8f548ca10b2f2f6b889b280c (patch)
treec973a1ec59e625dc9d1627abad3ac30cae6814fd /c++-qt/src/object.h
parentd534a56d95bca7bdd812be024d9eacba4734e2b7 (diff)
downloadlibgats-29e854354982dcdd8f548ca10b2f2f6b889b280c.tar.gz
libgats-29e854354982dcdd8f548ca10b2f2f6b889b280c.tar.bz2
libgats-29e854354982dcdd8f548ca10b2f2f6b889b280c.tar.xz
libgats-29e854354982dcdd8f548ca10b2f2f6b889b280c.zip
The attempt to use symlinks in place of the header files was silly.
Diffstat (limited to 'c++-qt/src/object.h')
-rw-r--r--c++-qt/src/object.h61
1 files changed, 0 insertions, 61 deletions
diff --git a/c++-qt/src/object.h b/c++-qt/src/object.h
deleted file mode 100644
index 7e12b87..0000000
--- a/c++-qt/src/object.h
+++ /dev/null
@@ -1,61 +0,0 @@
1/*
2 * Copyright (C) 2007-2012 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libgats library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
8#ifndef GATS_OBJECT_H
9#define GATS_OBJECT_H
10
11#include <QObject>
12#include <QByteArray>
13
14class QIODevice;
15
16namespace Gats
17{
18 enum Type
19 {
20 typeDictionary,
21 typeList,
22 typeString,
23 typeInteger,
24 typeFloat,
25 typeBoolean,
26 typeNull
27 };
28
29 /**
30 * The baseclass for every type that can be stored in a packet.
31 */
32 class Object : public QObject
33 {
34 Q_OBJECT;
35 public:
36 Object();
37 virtual ~Object();
38
39 virtual Object *clone() const=0;
40
41 virtual Type getType() const =0;
42
43 virtual void write( QIODevice &rOut ) const=0;
44 virtual void read( QIODevice &rIn, char cType )=0;
45
46 static Object *read( QIODevice &rIn );
47// static Object *strToGats( const &sStr );
48
49 private:
50// static Object *strToGats( QByteArray::const_iterator &i );
51// static QByteArray token( QByteArray::const_iterator &i );
52// static void skipWs( QByteArray::const_iterator &i );
53 };
54
55 const char *typeToStr( Type t );
56};
57
58//Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Object &obj );
59//Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Type &t );
60
61#endif