diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-11-09 17:20:11 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-09 17:20:11 +0000 |
commit | d534a56d95bca7bdd812be024d9eacba4734e2b7 (patch) | |
tree | f9b98ee2b80e645a7b54e7934882be6c9f73c165 /c++-qt/src/string.h | |
parent | 61ccc86fdf06f12cb72a8b7e65286f812cf62154 (diff) | |
download | libgats-d534a56d95bca7bdd812be024d9eacba4734e2b7.tar.gz libgats-d534a56d95bca7bdd812be024d9eacba4734e2b7.tar.bz2 libgats-d534a56d95bca7bdd812be024d9eacba4734e2b7.tar.xz libgats-d534a56d95bca7bdd812be024d9eacba4734e2b7.zip |
Many changes: tabconv'd the C++ code, added a license, BSD, and docs.
Diffstat (limited to 'c++-qt/src/string.h')
-rw-r--r-- | c++-qt/src/string.h | 49 |
1 files changed, 28 insertions, 21 deletions
diff --git a/c++-qt/src/string.h b/c++-qt/src/string.h index 9bf6ce3..a679fc0 100644 --- a/c++-qt/src/string.h +++ b/c++-qt/src/string.h | |||
@@ -1,3 +1,10 @@ | |||
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 | |||
1 | #ifndef GATS_STRING_H | 8 | #ifndef GATS_STRING_H |
2 | #define GATS_STRING_H | 9 | #define GATS_STRING_H |
3 | 10 | ||
@@ -6,27 +13,27 @@ | |||
6 | 13 | ||
7 | namespace Gats | 14 | namespace Gats |
8 | { | 15 | { |
9 | class String : public Gats::Object, public QByteArray | 16 | class String : public Gats::Object, public QByteArray |
10 | { | 17 | { |
11 | Q_OBJECT; | 18 | Q_OBJECT; |
12 | public: | 19 | public: |
13 | String(); | 20 | String(); |
14 | String( const char *s ); | 21 | String( const char *s ); |
15 | String( const char *s, long iLength ); | 22 | String( const char *s, long iLength ); |
16 | String( long iLength ); | 23 | String( long iLength ); |
17 | String( const String &s ); | 24 | String( const String &s ); |
18 | String( const QByteArray &s ); | 25 | String( const QByteArray &s ); |
19 | virtual ~String(); | 26 | virtual ~String(); |
20 | 27 | ||
21 | virtual Object *clone() const; | 28 | virtual Object *clone() const; |
22 | 29 | ||
23 | virtual Type getType() const { return typeString; } | 30 | virtual Type getType() const { return typeString; } |
24 | 31 | ||
25 | virtual void write( QIODevice &rOut ) const; | 32 | virtual void write( QIODevice &rOut ) const; |
26 | virtual void read( QIODevice &rIn, char cType ); | 33 | virtual void read( QIODevice &rIn, char cType ); |
27 | 34 | ||
28 | private: | 35 | private: |
29 | }; | 36 | }; |
30 | }; | 37 | }; |
31 | 38 | ||
32 | //Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::String &s ); | 39 | //Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::String &s ); |