Mercurial > forge
diff main/database/src/converters.h @ 11410:c20550232685 octave-forge
Conversion of enum types implemented.
author | i7tiol |
---|---|
date | Tue, 22 Jan 2013 20:24:30 +0000 |
parents | 21794ea37065 |
children | 61ea672a060a |
line wrap: on
line diff
--- a/main/database/src/converters.h Tue Jan 22 19:43:04 2013 +0000 +++ b/main/database/src/converters.h Tue Jan 22 20:24:30 2013 +0000 @@ -83,6 +83,13 @@ extern oct_pq_conv_t *conv_ptrs[OCT_PQ_NUM_CONVERTERS]; +// these prototypes are needed because pointers to these functions are +// stored in the converter structures of each found enum type +int to_octave_str_text (const char *c, octave_value &ov, int nb); +int to_octave_bin_text (const char *c, octave_value &ov, int nb); +int from_octave_str_text (const octave_value &ov, oct_pq_dynvec_t &val); +int from_octave_bin_text (const octave_value &ov, oct_pq_dynvec_t &val); + // append bytes of value 'val' of type 'type' to dynamic char vector 'dv' #define OCT_PQ_PUT(dv, type, val) \ dv.resize (dv.size () + sizeof (type)); \