# class Value | Representation of a value object. More...
Definition | `#include <value.h>`
Inherits | QVariant (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Types

- 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 }

#### Public Methods

- 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 ()

#### Public Static Methods

- static const char* typeToName ( Type typ )
- static Type nameToType ( const char* name )

## 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 } | ### Type

Value () | ### Value

~Value () | ### ~Value

Value (const Value &) | ### Value

Value (const QVariant &) | ### Value

Value (const QDate& ) | ### Value

Value (const QTime& ) | ### Value

Value (const QDateTime& ) | ### Value

Value (const QString&) | ### Value

Value (const char *) | ### Value

Value (long) | ### Value

Value (int) | ### Value

Value (KDB_ULONG) | ### Value

Value & operator = (const Value &) | ### operator =

bool operator== ( const Value& ) | ### operator==

[const]

bool operator!= ( const Value& ) | ### operator!=

[const]

Type type () | ### type

[const]

Reimplemented from QVariant.

const char* typeName () | ### typeName

[const]

Reimplemented from QVariant.

bool canCast ( Type ) | ### canCast

[const]

Reimplemented from QVariant.

bool cast ( Type ) | ### cast

const QString toString () | ### toString

[const]

Reimplemented from QVariant.

const QDate toDate () | ### toDate

[const]

const QTime toTime () | ### toTime

[const]

const QDateTime toDateTime () | ### toDateTime

[const]

const long toLong () | ### toLong

[const]

const KDB_ULONG toULong () | ### toULong

[const]

QString& asString () | ### asString

Reimplemented from QVariant.

QDate& asDate () | ### asDate

QTime& asTime () | ### asTime

QDateTime& asDateTime () | ### asDateTime

long& asLong () | ### asLong

KDB_ULONG& asULong () | ### asULong

const char* typeToName ( Type typ ) | ### typeToName

[static]

Reimplemented from QVariant.

Type nameToType ( const char* name ) | ### nameToType

[static]

Reimplemented from QVariant.

- Version: kdbcore 0.0.2
- Author: Alessandro Praduroux <pradu@thekompany.com>
- Generated: root@sparc.ports.openbsd.org on Wed May 2 09:48:14 2001, using kdoc 2.0a53.