Value

class Value {}

Constructors

this
this(GdaValue* gdaValue)

Sets our main struct and passes it to the parent class

this
this(bool val)
this
this()

Makes a new GdaValue of type GDA_VALUE_TYPE_NULL.

this
this(long val)

Makes a new GdaValue of type GDA_VALUE_TYPE_BIGINT with value val.

this
this(ulong val)

Makes a new GdaValue of type GDA_VALUE_TYPE_BIGUINT with value val.

this
this(void* val, glong size)

Makes a new GdaValue of type GDA_VALUE_TYPE_BINARY with value val.

this
this(GdaBlob* val)
this
this(GdaDate* val)

Makes a new GdaValue of type GDA_VALUE_TYPE_DATE with value val.

this
this(double val)

Makes a new GdaValue of type GDA_VALUE_TYPE_DOUBLE with value val.

this
this(GdaGeometricPoint* val)

Makes a new GdaValue of type GDA_VALUE_TYPE_GEOMETRIC_POINT with value val.

this
this(ObjectG val)

Makes a new GdaValue of type GDA_VALUE_TYPE_GOBJECT with value val.

this
this(int val)

Makes a new GdaValue of type GDA_VALUE_TYPE_INTEGER with value val.

this
this(GdaValueList* val)

Makes a new GdaValue of type GDA_VALUE_TYPE_LIST with value val.

this
this(GdaMoney* val)
this
this(GdaNumeric* val)

Makes a new GdaValue of type GDA_VALUE_TYPE_NUMERIC with value val.

this
this(float val)

Makes a new GdaValue of type GDA_VALUE_TYPE_SINGLE with value val.

this
this(short val)

Makes a new GdaValue of type GDA_VALUE_TYPE_SMALLINT with value val.

this
this(ushort val)

Makes a new GdaValue of type GDA_VALUE_TYPE_SMALLUINT with value val.

this
this(string val)

Makes a new GdaValue of type GDA_VALUE_TYPE_STRING with value val.

this
this(GdaTime* val)

Makes a new GdaValue of type GDA_VALUE_TYPE_TIME with value val.

this
this(GdaTimestamp* val)

Makes a new GdaValue of type GDA_VALUE_TYPE_TIMESTAMP with value val.

this
this(GdaValueType val)

Makes a new GdaValue of type GDA_VALUE_TYPE_TYPE with value val.

this
this(string asString, GdaValueType type)

Makes a new GdaValue of type type from its string representation.

this
this(xmlNodePtr node)

Creates a GdaValue from a XML representation of it. That XML

Members

Functions

compare
int compare(Value value2)

Compares two values of the same type.

copy
Value copy()

Creates a new GdaValue from an existing one.

free
void free()

Deallocates all memory associated to a GdaValue.

getBigint
long getBigint()

Gets the value stored in value.

getBiguint
ulong getBiguint()
getBinary
void* getBinary(glong* size)
getBlob
GdaBlob* getBlob()
getBoolean
int getBoolean()
getDate
GdaDate* getDate()
getDouble
double getDouble()
getGeometricPoint
GdaGeometricPoint* getGeometricPoint()
getGobject
ObjectG getGobject()
getInteger
int getInteger()
getList
GdaValueList* getList()
getMoney
GdaMoney* getMoney()
getNumeric
GdaNumeric* getNumeric()
getSingle
float getSingle()
getSmallint
short getSmallint()
getSmalluint
ushort getSmalluint()
getString
string getString()
getStruct
void* getStruct()

the main Gtk struct as a void*

getTime
GdaTime* getTime()
getTimestamp
GdaTimestamp* getTimestamp()
getTinyint
char getTinyint()
getTinyuint
char getTinyuint()
getType
GdaValueType getType()

Retrieves the type of the given value.

getUinteger
uint getUinteger()
getValueStruct
GdaValue* getValueStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getVtype
GdaValueType getVtype()
isNull
int isNull()

Tests if a given value is of type GDA_VALUE_TYPE_NULL.

isNumber
int isNumber()

Gets whether the value stored in the given GdaValue is of numeric type or not.

setBigint
void setBigint(long val)

Stores val into value.

setBiguint
void setBiguint(ulong val)

Stores val into value.

setBinary
void setBinary(void* val, glong size)

Stores val into value.

setBlob
void setBlob(GdaBlob* val)

Stores val into value.

setBoolean
void setBoolean(int val)

Stores val into value.

setDate
void setDate(GdaDate* val)

Stores val into value.

setDouble
void setDouble(double val)

Stores val into value.

setFromString
int setFromString(string asString, GdaValueType type)

Stores the value data from its string representation as type.

setFromValue
int setFromValue(Value from)

Sets the value of a GdaValue from another GdaValue. This is different from gda_value_copy, which creates a new GdaValue. gda_value_set_from_value, on the other hand, copies the contents of copy into value, which must already be allocated.

setGeometricPoint
void setGeometricPoint(GdaGeometricPoint* val)

Stores val into value.

setGobject
void setGobject(ObjectG val)

Stores val into value.

setInteger
void setInteger(int val)

Stores val into value.

setList
void setList(GdaValueList* val)

Stores val into value.

setMoney
void setMoney(GdaMoney* val)

Stores val into value.

setNull
void setNull()

Sets the type of value to GDA_VALUE_TYPE_NULL.

setNumeric
void setNumeric(GdaNumeric* val)

Stores val into value.

setSingle
void setSingle(float val)

Stores val into value.

setSmallint
void setSmallint(short val)

Stores val into value.

setSmalluint
void setSmalluint(ushort val)

Stores val into value.

setString
void setString(string val)

Stores val into value.

setTime
void setTime(GdaTime* val)

Stores val into value.

setTimestamp
void setTimestamp(GdaTimestamp* val)

Stores val into value.

setTinyint
void setTinyint(char val)

Stores val into value.

setTinyuint
void setTinyuint(char val)

Stores val into value.

setUinteger
void setUinteger(uint val)

Stores val into value.

setVtype
void setVtype(GdaValueType type)

Stores type into value.

stringify
string stringify()

Converts a GdaValue to its string representation as indicated by this

toXml
xmlNodePtr toXml()

Serializes the given GdaValue to a XML node string.

Static functions

getGtype
GType getGtype()

Variables

gdaValue
GdaValue* gdaValue;

the main Gtk struct

Meta