class Value

Representation of a value object. More...

Definition#include <value.h>
InheritsQVariant [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Static Methods


Detailed Description

Representation of a value object.

It stores a value and a value type. mostly is a QVariant, with some more datatypes when QT 3.0 will be out, probably all implementation will go away and we will have only a QVariant here. Actually, at my best knowledge, this is source compatible with QT 3.0 QVariant.

enum Type {Invalid, Map, List, String, StringList, Font, Pixmap, Brush, Rect, Size, Color, Palette, ColorGroup, IconSet, Point, Image, Int, UInt, Bool, Double, CString, PointArray, Region, Bitmap, Cursor, SizePolicy, Date, Time, DateTime, ByteArray, Long, ULong }

 Value ()

 ~Value ()

 Value (const Value &)

 Value (const QVariant &)

 Value (const QDate& )

 Value (const QTime& )

 Value (const QDateTime& )

 Value (const QString&)

 Value (const char *)

 Value (long)

 Value (int)

 Value (KDB_ULONG)

Value &  operator = (const Value &)

bool  operator== ( const Value& )

[const]

bool  operator!= ( const Value& )

[const]

Type  type ()

[const]

const char*  typeName ()

[const]

bool  canCast ( Type )

[const]

bool  cast ( Type )

const QString  toString ()

[const]

const QDate  toDate ()

[const]

const QTime  toTime ()

[const]

const QDateTime  toDateTime ()

[const]

const long  toLong ()

[const]

const KDB_ULONG  toULong ()

[const]

QString&  asString ()

QDate&  asDate ()

QTime&  asTime ()

QDateTime&  asDateTime ()

long&  asLong ()

KDB_ULONG&  asULong ()

const char*  typeToName ( Type typ )

[static]

Type  nameToType ( const char* name )

[static]