1
/* This file is part of the KDE project
2
Copyright (C) 2002, Dirk Sch�nberger <dirk.schoenberger@sz-online.de>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License as published by the Free Software Foundation; either
7
version 2 of the License, or (at your option) any later version.
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Library General Public License for more details.
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
Boston, MA 02111-1307, USA.
23
// #include <qvaluelist.h>
24
#include <qvaluevector.h>
54
AIElement( const AIElement& );
55
AIElement( const QString&, Type type = String );
56
AIElement( const QCString& );
57
AIElement( const char* );
58
// AIElement( const QValueList<AIElement>& );
59
AIElement( const QValueVector<AIElement>&, Type type = ElementArray);
63
AIElement( const QByteArray& );
66
AIElement& operator= ( const AIElement& );
67
bool operator==( const AIElement& ) const;
68
bool operator!=( const AIElement& ) const;
71
const char* typeName() const;
73
bool canCast( Type ) const;
80
const QString toString() const;
81
const QCString toCString() const;
82
int toInt( bool * ok=0 ) const;
83
uint toUInt( bool * ok=0 ) const;
84
double toDouble( bool * ok=0 ) const;
85
// const QValueList<AIElement> toList() const;
86
const QValueVector<AIElement> toElementArray() const;
87
const QValueVector<AIElement> toBlock() const;
90
const QString toReference() const;
91
const QString toOperator() const;
92
const QByteArray toByteArray() const;
93
uchar toByte( bool * ok=0 ) const;
95
// QValueListConstIterator<AIElement> listBegin() const;
96
// QValueListConstIterator<AIElement> listEnd() const;
98
QCString& asCString();
102
// QValueList<AIElement>& asList();
103
QValueVector<AIElement>& asElementArray();
104
QValueVector<AIElement>& asBlock();
107
QString& asReference();
109
QByteArray& asByteArray();
112
static const char* typeToName( Type typ );
113
static Type nameToType( const char* name );
118
class Private : public QShared
141
inline AIElement::Type AIElement::type() const
146
inline bool AIElement::isValid() const
148
return (d->typ != Invalid);