24#include <tqvaluevector.h>
55 AIElement( const TQString&, Type type = String );
59 AIElement( const TQValueVector<AIElement>&, Type type = ElementArray);
82 int toInt( bool * ok=0 ) const;
83 uint toUInt( bool * ok=0 ) const;
84 double toDouble( bool * ok=0 ) const;
87 const TQValueVector<AIElement> toBlock() const;
90 const TQString toReference() const;
91 const TQString toOperator() const;
92 const TQByteArray toByteArray() const;
93 uchar toByte( bool * ok=0 ) const;
98 TQCString& asCString();
104 TQValueVector<AIElement>& asBlock();
107 TQString& asReference();
109 TQByteArray& asByteArray();
118 class Private : public TQShared
141inline AIElement::Type AIElement::type() const
146inline bool AIElement::isValid() const
148 return (d->typ != Invalid);
bool operator==(const AIElement &) const
AIElement & operator=(const AIElement &)
const TQValueVector< AIElement > toElementArray() const
double toDouble(bool *ok=0) const
uint toUInt(bool *ok=0) const
const TQString toString() const
int toInt(bool *ok=0) const
static const char * typeToName(Type typ)
static Type nameToType(const char *name)
const TQCString toCString() const
bool cast(Type) Casts the aielement to the requested type.
TQValueVector< AIElement > & asElementArray()
const char * typeName() const
bool operator!=(const AIElement &) const
|