Gnome::Gda::Value Class Reference

#include <value.h>

List of all members.

Public Member Functions

 Value ()
 Value (GdaValue *castitem, bool make_a_copy=false)
 Value (const Value &src)
Valueoperator= (const Value &src)
 ~Value ()
GdaValue * gobj ()
const GdaValue * gobj () const
GdaValue * gobj_copy () const
 Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
 Value (const void *val, long size)
 Value (bool val)
 Value (const Date &val)
 Value (double val)
 Value (const GeometricPoint &val)
 Value (const GObject *val)
 Value (int val)
 Value (const GdaValueList *val)
 Value (const GdaMoney *val)
 Value (const GdaNumeric *val)
 Value (float val)
 Value (gshort val)
 Value (gushort val)
 Value (const Glib::ustring &val)
 Value (const char *val)
 Value (const Time &val)
 Value (const Timestamp &val)
 Value (gchar val)
 Value (guchar val)
 Value (ValueType val)
 Value (guint val)
 Value (const Glib::ustring &as_string, ValueType type)
bool operator== (const Value &src) const
bool operator!= (const Value &src) const
ValueType get_value_type () const
bool is_null () const
bool is_number () const
gint64 get_bigint () const
void set (gint64 val)
guint64 get_biguint () const
void set (guint64 val)
const gpointer get_binary (long &size) const
void set (gconstpointer val, long size)
const GdaBlob * get_blob () const
void set (const GdaBlob *val)
bool get_bool () const
void set (bool val)
Date get_date () const
void set (const Date &val)
double get_double () const
void set (double val)
GeometricPoint get_geometric_point () const
void set (const GeometricPoint &val)
Glib::RefPtr< const Glib::Objectget_gobject ()
void set (const Glib::RefPtr< Glib::Object > &val)
int get_integer () const
void set (int val)
const GdaValueList * get_list ()
void set (const GdaValueList *val)
void set_null ()
const GdaMoney * get_money () const
void set (const GdaMoney *val)
const GdaNumeric * get_numeric () const
void set (const GdaNumeric *val)
float get_single () const
void set (float val)
gshort get_smallint () const
void set (gshort val)
gushort get_smalluint () const
void set (gushort val)
Glib::ustring get_string () const
void set (const Glib::ustring &val)
Time get_time () const
void set (const Time &val)
Timestamp get_timestamp () const
void set (const Timestamp &val)
gchar get_tinyint () const
void set (gchar val)
guchar get_tinyuint ()
void set (guchar val)
guint get_uinteger () const
void set (guint val)
ValueType get_vtype () const
void set (GdaValueType type)
bool set_from_string (const Glib::ustring &as_string, ValueType type)
Glib::ustring to_string () const

Static Public Member Functions

static Value create_as_bigint (gint64 val)
static Value create_as_biguint (guint64 val)
static Value create_as_time_t (time_t val)
static Glib::ustring type_to_string (ValueType type)
static ValueType type_from_string (const Glib::ustring &type)

Protected Attributes

GdaValue * gobject_

Related Functions

(Note that these are not member functions.)

Gnome::Gda::Value wrap (GdaValue *object, bool take_copy=false)
 
Parameters:
object The C instance


Constructor & Destructor Documentation

Gnome::Gda::Value::Value (  ) 

Gnome::Gda::Value::Value ( GdaValue *  castitem,
bool  make_a_copy = false 
) [explicit]

Gnome::Gda::Value::Value ( const Value src  ) 

Gnome::Gda::Value::~Value (  ) 

Gnome::Gda::Value::Value ( const void *  val,
long  size 
) [explicit]

Gnome::Gda::Value::Value ( bool  val  )  [explicit]

Gnome::Gda::Value::Value ( const Date val  )  [explicit]

Gnome::Gda::Value::Value ( double  val  )  [explicit]

Gnome::Gda::Value::Value ( const GeometricPoint val  )  [explicit]

Gnome::Gda::Value::Value ( const GObject *  val  )  [explicit]

Gnome::Gda::Value::Value ( int  val  )  [explicit]

Gnome::Gda::Value::Value ( const GdaValueList *  val  )  [explicit]

Gnome::Gda::Value::Value ( const GdaMoney *  val  )  [explicit]

Gnome::Gda::Value::Value ( const GdaNumeric *  val  )  [explicit]

Gnome::Gda::Value::Value ( float  val  )  [explicit]

Gnome::Gda::Value::Value ( gshort  val  )  [explicit]

Gnome::Gda::Value::Value ( gushort  val  )  [explicit]

Gnome::Gda::Value::Value ( const Glib::ustring val  )  [explicit]

Gnome::Gda::Value::Value ( const char *  val  )  [explicit]

Gnome::Gda::Value::Value ( const Time val  )  [explicit]

Gnome::Gda::Value::Value ( const Timestamp val  )  [explicit]

Gnome::Gda::Value::Value ( gchar  val  )  [explicit]

Gnome::Gda::Value::Value ( guchar  val  )  [explicit]

Gnome::Gda::Value::Value ( ValueType  val  )  [explicit]

Gnome::Gda::Value::Value ( guint  val  )  [explicit]

Gnome::Gda::Value::Value ( const Glib::ustring as_string,
ValueType  type 
) [explicit]


Member Function Documentation

Value& Gnome::Gda::Value::operator= ( const Value src  ) 

GdaValue* Gnome::Gda::Value::gobj (  )  [inline]

const GdaValue* Gnome::Gda::Value::gobj (  )  const [inline]

GdaValue* Gnome::Gda::Value::gobj_copy (  )  const

Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.

static Value Gnome::Gda::Value::create_as_bigint ( gint64  val  )  [static]

static Value Gnome::Gda::Value::create_as_biguint ( guint64  val  )  [static]

static Value Gnome::Gda::Value::create_as_time_t ( time_t  val  )  [static]

bool Gnome::Gda::Value::operator== ( const Value src  )  const

bool Gnome::Gda::Value::operator!= ( const Value src  )  const

ValueType Gnome::Gda::Value::get_value_type (  )  const

bool Gnome::Gda::Value::is_null (  )  const

bool Gnome::Gda::Value::is_number (  )  const

gint64 Gnome::Gda::Value::get_bigint (  )  const

void Gnome::Gda::Value::set ( gint64  val  ) 

guint64 Gnome::Gda::Value::get_biguint (  )  const

void Gnome::Gda::Value::set ( guint64  val  ) 

const gpointer Gnome::Gda::Value::get_binary ( long &  size  )  const

void Gnome::Gda::Value::set ( gconstpointer  val,
long  size 
)

const GdaBlob* Gnome::Gda::Value::get_blob (  )  const

void Gnome::Gda::Value::set ( const GdaBlob *  val  ) 

bool Gnome::Gda::Value::get_bool (  )  const

void Gnome::Gda::Value::set ( bool  val  ) 

Date Gnome::Gda::Value::get_date (  )  const

void Gnome::Gda::Value::set ( const Date val  ) 

double Gnome::Gda::Value::get_double (  )  const

void Gnome::Gda::Value::set ( double  val  ) 

GeometricPoint Gnome::Gda::Value::get_geometric_point (  )  const

void Gnome::Gda::Value::set ( const GeometricPoint val  ) 

Glib::RefPtr<const Glib::Object> Gnome::Gda::Value::get_gobject (  ) 

void Gnome::Gda::Value::set ( const Glib::RefPtr< Glib::Object > &  val  ) 

int Gnome::Gda::Value::get_integer (  )  const

void Gnome::Gda::Value::set ( int  val  ) 

const GdaValueList* Gnome::Gda::Value::get_list (  ) 

void Gnome::Gda::Value::set ( const GdaValueList *  val  ) 

void Gnome::Gda::Value::set_null (  ) 

const GdaMoney* Gnome::Gda::Value::get_money (  )  const

void Gnome::Gda::Value::set ( const GdaMoney *  val  ) 

const GdaNumeric* Gnome::Gda::Value::get_numeric (  )  const

void Gnome::Gda::Value::set ( const GdaNumeric *  val  ) 

float Gnome::Gda::Value::get_single (  )  const

void Gnome::Gda::Value::set ( float  val  ) 

gshort Gnome::Gda::Value::get_smallint (  )  const

void Gnome::Gda::Value::set ( gshort  val  ) 

gushort Gnome::Gda::Value::get_smalluint (  )  const

void Gnome::Gda::Value::set ( gushort  val  ) 

Glib::ustring Gnome::Gda::Value::get_string (  )  const

void Gnome::Gda::Value::set ( const Glib::ustring val  ) 

Time Gnome::Gda::Value::get_time (  )  const

void Gnome::Gda::Value::set ( const Time val  ) 

Timestamp Gnome::Gda::Value::get_timestamp (  )  const

void Gnome::Gda::Value::set ( const Timestamp val  ) 

gchar Gnome::Gda::Value::get_tinyint (  )  const

void Gnome::Gda::Value::set ( gchar  val  ) 

guchar Gnome::Gda::Value::get_tinyuint (  ) 

void Gnome::Gda::Value::set ( guchar  val  ) 

guint Gnome::Gda::Value::get_uinteger (  )  const

void Gnome::Gda::Value::set ( guint  val  ) 

ValueType Gnome::Gda::Value::get_vtype (  )  const

void Gnome::Gda::Value::set ( GdaValueType  type  ) 

bool Gnome::Gda::Value::set_from_string ( const Glib::ustring as_string,
ValueType  type 
)

Glib::ustring Gnome::Gda::Value::to_string (  )  const

static Glib::ustring Gnome::Gda::Value::type_to_string ( ValueType  type  )  [static]

static ValueType Gnome::Gda::Value::type_from_string ( const Glib::ustring type  )  [static]


Friends And Related Function Documentation

Gnome::Gda::Value wrap ( GdaValue *  object,
bool  take_copy = false 
) [related]

Parameters:
object The C instance

Parameters:
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.


Member Data Documentation

GdaValue* Gnome::Gda::Value::gobject_ [protected]


The documentation for this class was generated from the following file:
Generated on Mon May 14 14:24:33 2007 for libgdamm by  doxygen 1.5.1