Revision 0dbb3330 include/VirtualNetwork.h

View differences:

include/VirtualNetwork.h
195 195
        string& name,
196 196
        vector<const Attribute*>& values) const
197 197
    {
198
        return vn_template.get(name,values);
198
        return vn_template->get(name,values);
199 199
    };
200 200

  
201 201
    /**
......
209 209
        vector<const Attribute*>& values) const
210 210
    {
211 211
        string str=name;
212
        return vn_template.get(str,values);
212
        return vn_template->get(str,values);
213 213
    };
214 214

  
215 215
    /**
......
222 222
        string&         value) const
223 223
    {
224 224
        string str=name;
225
        vn_template.get(str,value);
225
        vn_template->get(str,value);
226 226
    }
227 227

  
228 228
    /**
......
235 235
        int&            value) const
236 236
    {
237 237
        string str=name;
238
        vn_template.get(str,value);
238
        vn_template->get(str,value);
239 239
    }
240 240

  
241 241
private:
......
293 293
    /**
294 294
     *  The Virtual Network template, holds the VNW attributes.
295 295
     */
296
    VirtualNetworkTemplate  vn_template;
296
    VirtualNetworkTemplate * vn_template;
297 297

  
298 298
    // *************************************************************************
299 299
    // DataBase implementation (Private)
......
355 355
        int               rc;
356 356

  
357 357
        sattr = new SingleAttribute(name,value);
358
        rc    = vn_template.replace_attribute(db,sattr);
358
        rc    = vn_template->replace_attribute(db,sattr);
359 359

  
360 360
        if (rc != 0)
361 361
        {
......
371 371
    // Constructor
372 372
    //**************************************************************************
373 373

  
374
    VirtualNetwork();
374
    VirtualNetwork(VirtualNetworkTemplate * _vn_template = 0);
375 375

  
376 376
    ~VirtualNetwork();
377 377

  
......
428 428
    {
429 429
        int rc;
430 430

  
431
        rc =  vn_template.drop(db);
431
        rc =  vn_template->drop(db);
432 432

  
433 433
        rc += leases->drop(db);
434 434

  

Also available in: Unified diff