Deprecate PrintCtrl and LogPrintCtrl

This commit is contained in:
Ray Speth 2013-06-24 15:21:46 +00:00
parent 89664920e8
commit 9b31092e90
5 changed files with 7 additions and 1 deletions

View file

@ -45,6 +45,7 @@ namespace Cantera
* conversion utility.
*
* @ingroup globalUtilFuncs
* @deprecated To be removed in Cantera 2.2.
*/
class PrintCtrl
{

View file

@ -22,6 +22,7 @@ LogPrintCtrl::LogPrintCtrl(int Ndec) :
m_ffss(0),
m_pc(0)
{
warn_deprecated("class LogPrintCtrl");
m_ffss = new std::ostream(m_os.rdbuf());
m_pc = new PrintCtrl(*m_ffss, Ndec);
}

View file

@ -32,7 +32,7 @@ namespace Cantera
* is what I came up with.
*
* @ingroup globalUtilFuncs
*
* @deprecated To be removed in Cantera 2.2.
*/
class LogPrintCtrl
{

View file

@ -11,6 +11,7 @@
*/
#include "cantera/base/PrintCtrl.h"
#include "cantera/base/global.h"
#include <cmath>
using namespace std;
@ -30,6 +31,7 @@ PrintCtrl::PrintCtrl(std::ostream& coutProxy, int Ndec,
m_wMax(19),
m_cropCntrl(ctlocal)
{
warn_deprecated("class PrintCtrl");
}
void PrintCtrl::pr_de_c10(const double din, int p, const int wMin,

View file

@ -4,6 +4,7 @@
#include "cantera/base/PrintCtrl.h"
#include "base/LogPrintCtrl.h"
#include "cantera/base/global.h"
using namespace Cantera;
using namespace std;
@ -285,6 +286,7 @@ void doLogger()
int main()
{
suppress_deprecation_warnings();
#ifdef _MSC_VER
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif