Revision 0dbb3330 include/ImagePool.h
include/ImagePool.h | ||
---|---|---|
55 | 55 |
* -2 in case of template parse failure |
56 | 56 |
*/ |
57 | 57 |
int allocate ( |
58 |
int uid, |
|
59 |
const string& stemplate,
|
|
60 |
int * oid); |
|
58 |
int uid,
|
|
59 |
ImageTemplate * img_template,
|
|
60 |
int * oid);
|
|
61 | 61 |
|
62 | 62 |
/** |
63 | 63 |
* Function to get a Image from the pool, if the object is not in memory |
... | ... | |
133 | 133 |
{ |
134 | 134 |
SingleAttribute * sattr = new SingleAttribute(name,value); |
135 | 135 |
|
136 |
return image->image_template.replace_attribute(db,sattr);
|
|
136 |
return image->image_template->replace_attribute(db,sattr);
|
|
137 | 137 |
} |
138 | 138 |
|
139 | 139 |
/** Delete an image attribute in the template (Image MUST be locked) |
... | ... | |
145 | 145 |
Image * image, |
146 | 146 |
const string& name) |
147 | 147 |
{ |
148 |
return image->image_template.remove_attribute(db, name);
|
|
148 |
return image->image_template->remove_attribute(db, name);
|
|
149 | 149 |
} |
150 | 150 |
|
151 | 151 |
/** |
Also available in: Unified diff