Added back a routine that caused numerous downstream failures.
This commit is contained in:
parent
e7a24f7acd
commit
a58fc91f01
2 changed files with 17 additions and 6 deletions
|
|
@ -280,7 +280,18 @@ public:
|
|||
void addAttribute(const std::string& attrib, const doublereal value,
|
||||
const std::string& fmt="%g");
|
||||
|
||||
//! Add an integer attribute
|
||||
/*!
|
||||
* @param attrib String name for the attribute to be assigned
|
||||
* @param value int Value that the node will be assigned
|
||||
*/
|
||||
void addAttribute(const std::string& attrib, int value);
|
||||
|
||||
//! Add an unsigned integer attribute
|
||||
/*!
|
||||
* @param attrib String name for the attribute to be assigned
|
||||
* @param value int Value that the node will be assigned
|
||||
*/
|
||||
void addAttribute(const std::string& attrib, size_t value);
|
||||
|
||||
//! The operator[] is overloaded to provide a lookup capability
|
||||
|
|
|
|||
|
|
@ -416,18 +416,18 @@ XML_Node& XML_Node::addChild(const std::string& sname)
|
|||
return mergeAsChild(*(new XML_Node(sname, this)));
|
||||
}
|
||||
|
||||
XML_Node& XML_Node::addChild(const std::string& name_, const std::string& value_)
|
||||
XML_Node& XML_Node::addChild(const std::string& name, const std::string& value)
|
||||
{
|
||||
XML_Node& c = addChild(name_);
|
||||
c.addValue(value_);
|
||||
XML_Node& c = addChild(name);
|
||||
c.addValue(value);
|
||||
return c;
|
||||
}
|
||||
|
||||
XML_Node& XML_Node::addChild(const std::string& name_, const doublereal value_,
|
||||
XML_Node& XML_Node::addChild(const std::string& name, const doublereal value,
|
||||
const std::string& fmt)
|
||||
{
|
||||
XML_Node& c = addChild(name_);
|
||||
c.addValue(value_, fmt);
|
||||
XML_Node& c = addChild(name);
|
||||
c.addValue(value, fmt);
|
||||
return c;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue