int db::CursorRowAccessor::get_field ( const NameChar *  name,
Value value 
) const [inherited]

Retrieve a value from the row buffer.

The value in the row buffer for the field specified by field will be stored in the parameter value.

Parameters:
name The name of the field to read data from. (required)
value Destination for the value of the field. (required)
Returns:
An alternative syntax is available using RowAccessor::operator[]. For example:
 db::Table contact;
 contact.open(db, "contact");
 db::String name = contact["name"].as_string();

Note:
Since RowAccessor::operator[] cannot return an error, get_field should be used instead whenever per-field error handling is necessary.
See also:
operator[], set_field


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