From d534a56d95bca7bdd812be024d9eacba4734e2b7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 9 Nov 2012 17:20:11 +0000 Subject: Many changes: tabconv'd the C++ code, added a license, BSD, and docs. --- c++-qt/src/string.h | 49 ++++++++++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 21 deletions(-) (limited to 'c++-qt/src/string.h') 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 @@ +/* + * Copyright (C) 2007-2012 Xagasoft, All rights reserved. + * + * This file is part of the libgats library and is released under the + * terms of the license contained in the file LICENSE. + */ + #ifndef GATS_STRING_H #define GATS_STRING_H @@ -6,27 +13,27 @@ namespace Gats { - class String : public Gats::Object, public QByteArray - { - Q_OBJECT; - public: - String(); - String( const char *s ); - String( const char *s, long iLength ); - String( long iLength ); - String( const String &s ); - String( const QByteArray &s ); - virtual ~String(); - - virtual Object *clone() const; - - virtual Type getType() const { return typeString; } - - virtual void write( QIODevice &rOut ) const; - virtual void read( QIODevice &rIn, char cType ); - - private: - }; + class String : public Gats::Object, public QByteArray + { + Q_OBJECT; + public: + String(); + String( const char *s ); + String( const char *s, long iLength ); + String( long iLength ); + String( const String &s ); + String( const QByteArray &s ); + virtual ~String(); + + virtual Object *clone() const; + + virtual Type getType() const { return typeString; } + + virtual void write( QIODevice &rOut ) const; + virtual void read( QIODevice &rIn, char cType ); + + private: + }; }; //Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::String &s ); -- cgit v1.2.3