diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2012-11-09 17:22:33 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-09 17:22:33 +0000 |
| commit | 29e854354982dcdd8f548ca10b2f2f6b889b280c (patch) | |
| tree | c973a1ec59e625dc9d1627abad3ac30cae6814fd /c++-qt/gats-qt/dictionary.h | |
| parent | d534a56d95bca7bdd812be024d9eacba4734e2b7 (diff) | |
| download | libgats-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 '')
| -rw-r--r--[l---------] | c++-qt/gats-qt/dictionary.h | 78 |
1 files changed, 77 insertions, 1 deletions
diff --git a/c++-qt/gats-qt/dictionary.h b/c++-qt/gats-qt/dictionary.h index cdca1b6..af1d436 120000..100644 --- a/c++-qt/gats-qt/dictionary.h +++ b/c++-qt/gats-qt/dictionary.h | |||
| @@ -1 +1,77 @@ | |||
| 1 | ../src/dictionary.h \ No newline at end of file | 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_DICTIONARY_H | ||
| 9 | #define GATS_DICTIONARY_H | ||
| 10 | |||
| 11 | #include "gats-qt/object.h" | ||
| 12 | #include "gats-qt/string.h" | ||
| 13 | #include <QHash> | ||
| 14 | |||
| 15 | namespace Gats | ||
| 16 | { | ||
| 17 | class List; | ||
| 18 | |||
| 19 | class Dictionary : public Gats::Object, | ||
| 20 | public QHash<QByteArray, Gats::Object *> | ||
| 21 | { | ||
| 22 | Q_OBJECT; | ||
| 23 | public: | ||
| 24 | Dictionary(); | ||
| 25 | virtual ~Dictionary(); | ||
| 26 | |||
| 27 | virtual Object *clone() const; | ||
| 28 | |||
| 29 | virtual Type getType() const { return typeDictionary; } | ||
| 30 | virtual void write( QIODevice &rOut ) const; | ||
| 31 | virtual void read( QIODevice &rIn, char cType ); | ||
| 32 | |||
| 33 | void insert( const QByteArray &sKey, const char *s ); | ||
| 34 | void insert( const QByteArray &sKey, const QByteArray &s ); | ||
| 35 | void insert( const QByteArray &sKey, char i ); | ||
| 36 | void insert( const QByteArray &sKey, unsigned char i ); | ||
| 37 | void insert( const QByteArray &sKey, signed char i ); | ||
| 38 | void insert( const QByteArray &sKey, unsigned short i ); | ||
| 39 | void insert( const QByteArray &sKey, signed short i ); | ||
| 40 | void insert( const QByteArray &sKey, unsigned int i ); | ||
| 41 | void insert( const QByteArray &sKey, signed int i ); | ||
| 42 | void insert( const QByteArray &sKey, unsigned long i ); | ||
| 43 | void insert( const QByteArray &sKey, signed long i ); | ||
| 44 | void insert( const QByteArray &sKey, unsigned long long i ); | ||
| 45 | void insert( const QByteArray &sKey, signed long long i ); | ||
| 46 | //void insert( const QByteArray &sKey, bool b ); | ||
| 47 | void insert( const QByteArray &sKey, float d ); | ||
| 48 | void insert( const QByteArray &sKey, double d ); | ||
| 49 | using QHash<QByteArray, Gats::Object *>::insert; | ||
| 50 | void insertBool( const QByteArray &sKey, bool b ); | ||
| 51 | void insertInt( const QByteArray &sKey, int64_t i ); | ||
| 52 | void insertFloat( const QByteArray &sKey, double d ); | ||
| 53 | void insertStr( const QByteArray &sKey, const QByteArray &s ); | ||
| 54 | void insertList( const QByteArray &sKey, Gats::List *pL ); | ||
| 55 | void insertDict( const QByteArray &sKey, Gats::Dictionary *pD ); | ||
| 56 | Gats::List *insertList( const QByteArray &sKey ); | ||
| 57 | Gats::Dictionary *insertDict( const QByteArray &sKey ); | ||
| 58 | |||
| 59 | bool valueBool( const QByteArray &sKey ); | ||
| 60 | int64_t valueInt( const QByteArray &sKey ); | ||
| 61 | double valueFloat( const QByteArray &sKey ); | ||
| 62 | QByteArray valueStr( const QByteArray &sKey ); | ||
| 63 | Gats::List *valueList( const QByteArray &sKey ); | ||
| 64 | Gats::Dictionary *valueDict( const QByteArray &sKey ); | ||
| 65 | |||
| 66 | bool valueBool( const QByteArray &sKey ) const; | ||
| 67 | int64_t valueInt( const QByteArray &sKey ) const; | ||
| 68 | double valueFloat( const QByteArray &sKey ) const; | ||
| 69 | QByteArray valueStr( const QByteArray &sKey ) const; | ||
| 70 | Gats::List *valueList( const QByteArray &sKey ) const; | ||
| 71 | Gats::Dictionary *valueDict( const QByteArray &sKey ) const; | ||
| 72 | }; | ||
| 73 | }; | ||
| 74 | |||
| 75 | //Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Dictionary &d ); | ||
| 76 | |||
| 77 | #endif | ||
