Menu

#6 get double by its name instead of position

open
nobody
None
5
2006-09-22
2006-09-22
Anonymous
No

Hi,

There is no interface to get a double
by its name instead of its position in the
"recordset".

Is it to possible to have something like

#if defined(OTL_STL)
void get(const char* var_name, double& n)
{
var_name2pos_map_type::iterator
it=var_name2pos_map_.find(var_name);
check_name(it,var_name);
get((*it).second+1,n);
}
#endif

to get doubles with their column name?
Is this code correct to run properly?

Best regards,

Antonio.

Discussion


Log in to post a comment.