… | |
… | |
256 | else |
256 | else |
257 | put (k, (const char *)0); |
257 | put (k, (const char *)0); |
258 | } |
258 | } |
259 | |
259 | |
260 | bool save (const char *filename); |
260 | bool save (const char *filename); |
|
|
261 | char *as_string (); // like strdup |
261 | |
262 | |
262 | operator bool () { return !!av; } |
263 | operator bool () { return !!av; } |
263 | }; |
264 | }; |
264 | |
265 | |
265 | // compatibility support, should be removed when no longer needed |
266 | // compatibility support, should be removed when no longer needed |
… | |
… | |
274 | char *last_value; |
275 | char *last_value; |
275 | |
276 | |
276 | operator bool () { return !!text; } |
277 | operator bool () { return !!text; } |
277 | |
278 | |
278 | object_thawer (const char *filename = 0); |
279 | object_thawer (const char *filename = 0); |
|
|
280 | object_thawer (const char *data, AV *perlav); |
279 | ~object_thawer (); |
281 | ~object_thawer (); |
280 | |
282 | |
281 | void get (data_type type, void *obj, attachable_base *ext, int oid); |
283 | void get (data_type type, void *obj, attachable_base *ext, int oid); |
282 | |
284 | |
283 | template<class subclass> |
285 | template<class subclass> |