Provide an add method for a char* value

This commit is contained in:
fbraem 2013-02-20 22:20:29 +01:00
parent 25141680e2
commit e04dca0e13

View File

@ -99,6 +99,14 @@ public:
}
void add(const std::string& name, const char* value)
/// Creates an element with the given name and value
// adds it to the document.
{
addElement(new ConcreteElement<std::string>(name, std::string(value)));
}
void clear();
/// Removes all elements from the document.