Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

RTK::Variant Class Reference

The Variant object is similar to QVariant, but simpler and with the adition of some basic types as Money, the Reference to Variant type, and some form of Script. More...

#include <rtkvariant.h>

List of all members.

Public Types

enum  Type {
  Invalid, tBool, tInt, tUInt,
  tDouble, tString, tDate, tTime,
  tDateTime, tColor, tImage, tByteArray,
  tMoney, tCFunctionType, tVariantRef
}

Public Member Functions

 Variant (Variant *val)
 Variant (const Variant &val)
 Variant (bool val)
 Variant (int val)
 Variant (uint val)
 Variant (long val)
 Variant (double val)
 Variant (const QString &val)
 Variant (const char *val)
 Variant (const QDate &val)
 Variant (const QTime &val)
 Variant (const QDateTime &val)
 Variant (const QColor &val)
 Variant (const QImage &val)
 Variant (const QByteArray &val)
 Variant (const Money &val)
 Variant (const QVariant &val)
bool toBool () const
int toInt (bool *ok=0) const
uint toUInt (bool *ok=0) const
double toDouble (bool *ok=0) const
Measure toMeasure (bool *ok=0) const
const QString toString () const
const QDate toDate () const
const QTime toTime () const
const QDateTime toDateTime () const
const QColor toColor () const
const QImage * toImage () const
const QByteArray toByteArray () const
const Money toMoney (bool *ok=0) const
const BorderStyle toBorderStyle () const
const AlignmentType toAlignmentType () const
const AdjustmentType toAdjustmentType () const
Type type () const
Variantoperator+= (const Variant &)
Variantoperator= (const Variant &val)
bool operator== (const Variant &) const
bool operator!= (const Variant &) const
const char * typeName () const
bool canCast (Type) const
bool isValid () const
bool isNull () const

Static Public Member Functions

const char * typeToName (Type typ)
Type nameToType (const char *name)
bool isNumeric (Type type)
Type QVariantTypeToVariantType (QVariant::Type val)


Detailed Description

The Variant object is similar to QVariant, but simpler and with the adition of some basic types as Money, the Reference to Variant type, and some form of Script.

This is not the definitive release of variant and is subject to change.


The documentation for this class was generated from the following file:
Generated on Tue Feb 22 14:44:38 2005 for RTK. Report ToolKit by  doxygen 1.3.9.1