Commented the _require() routine.

This commit is contained in:
Harry Moffat 2005-10-04 16:53:35 +00:00
parent 3f3ca7d62c
commit 8b81c0400e

View file

@ -720,7 +720,13 @@ namespace Cantera {
}
}
/**
* _require()
* Require that the current xml node have an attribute named
* by the first argument, a, and that this attribute have the
* the string value listed in the second argument, v.
* If not, throw a CanteraError exception.
*/
void XML_Node::_require(string a, string v) const {
if (hasAttrib(a)) {
if (attrib(a) == v) return;