From 843f2ad337500270d9639424f680aad8781b4fd2 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 6 Jun 2013 15:33:11 +0000 Subject: [PATCH] Deprecate ctml::getFloats --- include/cantera/base/ctml.h | 1 + src/base/ctml.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/cantera/base/ctml.h b/include/cantera/base/ctml.h index 347f3a99a..f82b46e1c 100644 --- a/include/cantera/base/ctml.h +++ b/include/cantera/base/ctml.h @@ -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& v, const bool convert=true); diff --git a/src/base/ctml.cpp b/src/base/ctml.cpp index 7caf5e1e1..00940ce4c 100644 --- a/src/base/ctml.cpp +++ b/src/base/ctml.cpp @@ -228,6 +228,8 @@ void getIntegers(const Cantera::XML_Node& node, void getFloats(const Cantera::XML_Node& node, std::map& v, const bool convert) { + warn_deprecated("ctml::getFloats", + "To be removed in Cantera 2.2."); std::vector f; node.getChildren("float",f); int n = static_cast(f.size());