class datatype

Describes an available datatype for the database. More...

Full nametoExtract::datatype
Definition#include <toextract.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

Describes an available datatype for the database.

 datatype (const QString &name,int maxLength=-1,int maxPrecision=-1)

datatype

Create a new datatype description.

Parameters:
nameName of datatype.
maxLengthMaximum length of parameter if length is needed.
maxPrecisionMaximum precision of parameter if precision is supported.

bool  hasLength ()

hasLength

Returns true if type has length specification.

bool  hasPrecision ()

hasPrecision

Returns true if type has precision specification.

int  maxLength ()

maxLength

Get the maximum length value.

int  maxPrecision ()

maxPrecision

Get the maximum precision of the datatype.

const QStringname ()

name

Get the name of the datatype.

bool  operator < (const datatype &dat)

operator <

[const]

Implemented so that you can easily sort a list of them. Just compares the names.

bool  operator == (const datatype &dat)

operator ==

[const]

Implemented so that you can easily sort a list of them. Just compares the names.


Generated by: nneul on skyhawk on Wed Feb 23 19:49:58 2005, using kdoc 2.0a54.