db::CurrencyField Class Reference
[Fields]

#include <ittia/dbxx/dbxx_field_ref.h>

Inheritance diagram for db::CurrencyField:

Inheritance graph

List of all members.


Detailed Description

A Field that contains a Currency value.

Public Member Functions

 CurrencyField (RowAccessor &cursor, const NameChar *field_name)
 CurrencyField (RowAccessor &cursor, int field)
 CurrencyField (const Field &o)
 operator float () const
 operator double () const
 operator Currency () const
const CurrencyFieldoperator= (float)
const CurrencyFieldoperator= (double)
const CurrencyFieldoperator= (Currency)
const CurrencyFieldoperator= (const Field &o)
int attach (const Field &)
int attach (RowAccessor &, const NameChar *)
int attach (RowAccessor &, int fieldno)
 operator Value ()
 operator const Value () const
bool is_valid () const
bool is_null () const
void set_null ()
IntegerField as_int () const
FloatField as_float () const
CurrencyField as_currency () const
StringField as_string () const
WStringField as_wstring () const
DateTimeField as_datetime () const
BlobField as_blob () const

Protected Member Functions

db_uint get_type_mask () const
const Value as_value () const
void set_field (const Value &new_value)
int fieldno () const

Static Protected Member Functions

static bool valid_type (RowAccessor *, int field, db_uint type_mask)

Protected Attributes

int field
RowAccessorrow

Copyright © 2005-2008 ITTIA®. All rights reserved.