class toQValue

This function is used to represent values that are passed to and from queries More...

Definition#include <toqvalue.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods


Detailed Description

This function is used to represent values that are passed to and from queries

 toQValue (void)

toQValue

Create null value.

 toQValue (int i)

toQValue

Create integer value.

Parameters:
iValue.

 toQValue (const QString &str)

toQValue

Create string value.

Parameters:
strValue.

 toQValue (double d)

toQValue

Create double value.

Parameters:
dValue.

 ~toQValue ()

~toQValue

Destruct query.

 toQValue (const toQValue &copy)

toQValue

Create a copy of a value.

const toQValueoperator = (const toQValue &copy)

operator =

Assign this value from another value.

bool  isInt (void)

isInt

[const]

Check if this is an int value.

bool  isDouble (void)

isDouble

[const]

Check if this is a double value.

bool  isString (void)

isString

[const]

Check if this is a string value.

bool  isNull (void)

isNull

[const]

Check if this value is null.

QCString  utf8Value (void)

utf8Value

[const]

Get utf8 format of this value.

int  toInt (void)

toInt

[const]

Get integer representation of this value.

double  toDouble (void)

toDouble

[const]

Get double representation of this value.

operator  QString ()

QString

[const]

Convert value to a string.

void  setNumberFormat (int format,int decimals)

setNumberFormat

[static]

Set numberformat.

Parameters:
format0 = Default, 1 = Scientific, 2 = Fixed Decimals
decimalsNumber on decimals for fixed decimals.

QString  formatNumber (double number)

formatNumber

[static]

Format a number according to current settings.

int  numberFormat (void)

numberFormat

[static]

Get number format.

Returns: Format 0 = Default, 1 = Scientific, 2 = Fixed Decimals

int  numberDecimals (void)

numberDecimals

[static]

Get decimals if fixed decimals.