diff options
author | Mike Buland <eichlan@xagasoft.com> | 2022-04-06 23:45:42 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2022-04-06 23:45:42 -0700 |
commit | 3cbd1038e20dcb2b25db4e74666ec21766642729 (patch) | |
tree | 1fab95855d344196a44feadda75bfc0a5a63b61f /c++-qt/gats-qt/dictionary.h | |
parent | b522669649e81c61c6a5e390991b8fd70bfdeed9 (diff) | |
download | libgats-3cbd1038e20dcb2b25db4e74666ec21766642729.tar.gz libgats-3cbd1038e20dcb2b25db4e74666ec21766642729.tar.bz2 libgats-3cbd1038e20dcb2b25db4e74666ec21766642729.tar.xz libgats-3cbd1038e20dcb2b25db4e74666ec21766642729.zip |
toString works.
It does indent automatically. I figure, you know, if you're converting
to a string then a big part of the reason is so you can read it. In that
case, why make it optional?
Diffstat (limited to '')
-rw-r--r-- | c++-qt/gats-qt/dictionary.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/c++-qt/gats-qt/dictionary.h b/c++-qt/gats-qt/dictionary.h index b1b6051..6f9e82a 100644 --- a/c++-qt/gats-qt/dictionary.h +++ b/c++-qt/gats-qt/dictionary.h | |||
@@ -30,6 +30,8 @@ namespace Gats | |||
30 | virtual Type getType() const { return typeDictionary; } | 30 | virtual Type getType() const { return typeDictionary; } |
31 | virtual void write( QIODevice &rOut ) const; | 31 | virtual void write( QIODevice &rOut ) const; |
32 | virtual void read( QIODevice &rIn, char cType ); | 32 | virtual void read( QIODevice &rIn, char cType ); |
33 | |||
34 | virtual QString toString( int iIndent=0 ) const; | ||
33 | 35 | ||
34 | void insert( const QByteArray &sKey, const char *s ); | 36 | void insert( const QByteArray &sKey, const char *s ); |
35 | void insert( const QByteArray &sKey, const QByteArray &s ); | 37 | void insert( const QByteArray &sKey, const QByteArray &s ); |