Re: c++ bindings



> > And now I'm realizing that I don't know if it's a good idea to wrap the
> > GDA_Value CORBA struct. I have to check if it's used at all in any
> > client app. And if it's used, the gda-value.[ch] should be added to the
> > libgda-client to wrap it in the C libs. This struct is now partially
> > wrapped by the Gda_Field struct.
> 
> Hmm.... how do you set the value of a field? I can seem to only find
> functions to get the value... 
It's intentional not to have functions to set the value, since right
now, it's got no sense to do this in the client applications, since you
can't directly update an open recordset. As soon as we find a way to do
this in all the providers, all these functions will be added.

> Also, if you can just get the value of a field by using
> real_value->_u.v._u.d, why have the extra functions in Gda_Field to
> get_double and such?
> 
Because the last _u is a union which contains variables for all possible
data types. And what these macros do is to access the correct variable
for the given data type.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]