Revision 0dbb3330 include/Image.h

View differences:

include/Image.h
221 221
        string& name,
222 222
        vector<const Attribute*>& values) const
223 223
    {
224
        return image_template.get(name,values);
224
        return image_template->get(name,values);
225 225
    };
226 226

  
227 227
    /**
......
235 235
        vector<const Attribute*>& values) const
236 236
    {
237 237
        string str=name;
238
        return image_template.get(str,values);
238
        return image_template->get(str,values);
239 239
    };
240 240

  
241 241
    /**
......
248 248
        string&         value) const
249 249
    {
250 250
        string str=name;
251
        image_template.get(str,value);
251
        image_template->get(str,value);
252 252
    }
253 253

  
254 254
    /**
......
261 261
        int&            value) const
262 262
    {
263 263
        string str=name;
264
        image_template.get(str,value);
264
        image_template->get(str,value);
265 265
    }
266 266

  
267 267
    /**
......
270 270
     */
271 271
    int remove_template_attribute(SqlDB * db, const string&   name)
272 272
    {
273
        return image_template.remove_attribute(db, name);
273
        return image_template->remove_attribute(db, name);
274 274
    }
275 275

  
276 276
private:
......
332 332
    /**
333 333
     *  The Image template, holds the Image attributes.
334 334
     */
335
    ImageTemplate    image_template;
335
    ImageTemplate *  image_template;
336 336

  
337 337

  
338 338
    // *************************************************************************
......
382 382
    // Constructor
383 383
    // *************************************************************************
384 384

  
385
    Image(int id=-1);
385
    Image(int uid=-1, ImageTemplate *img_template = 0);
386 386

  
387 387
    virtual ~Image();
388 388

  

Also available in: Unified diff