Deprecate ctml::getFloats

This commit is contained in:
Ray Speth 2013-06-06 15:33:11 +00:00
parent 18a102c91f
commit 843f2ad337
2 changed files with 3 additions and 0 deletions

View file

@ -588,6 +588,7 @@ bool getOptionalFloat(const Cantera::XML_Node& parent, const std::string& name,
* @param node Current XML node to get the values from
* @param v Output map of the results.
* @param convert Turn on conversion to SI units
* @param deprecated Unused. To be removed in Cantera 2.2.
*/
void getFloats(const Cantera::XML_Node& node, std::map<std::string, double>& v,
const bool convert=true);

View file

@ -228,6 +228,8 @@ void getIntegers(const Cantera::XML_Node& node,
void getFloats(const Cantera::XML_Node& node, std::map<std::string, double>& v,
const bool convert)
{
warn_deprecated("ctml::getFloats",
"To be removed in Cantera 2.2.");
std::vector<XML_Node*> f;
node.getChildren("float",f);
int n = static_cast<int>(f.size());