Revision d797d04a include/Attribute.h

View differences:

include/Attribute.h
348 348
    }
349 349

  
350 350
    /**
351
     *  Replace the value of the given vector attribute
352
     */
353
    void replace(const string& name, const char* value)
354
    {
355
        string svalue(value);
356

  
357
        replace(name, svalue);
358
    }
359

  
360
    /**
361
     *  Replace the value of the given vector attribute
362
     */
363
    void replace(const string& name, bool value)
364
    {
365
        string b_value;
366

  
367
        if (value == true)
368
        {
369
            b_value = "YES";
370
        }
371
        else
372
        {
373
            b_value = "NO";
374
        }
375

  
376
        replace(name, b_value);
377
    }
378

  
379
    /**
351 380
     * Removes given the vector attribute
352 381
     * @param name of the vector attribute
353 382
     */

Also available in: Unified diff