21 LogPrintCtrl::LogPrintCtrl(
int Ndec) :
void pr_de(const double d, int sigDigits=-1, const int wMin=-1, const int wMax=-1)
Print a double using scientific notation.
int setWmin(int wMin)
Set the default minimum width.
double cropAbs10(const double d, const int nDecades) const
Crop a double at a certain decade level.
void pr_de_c10(const double d, int sigDigits=-1, const int wMin=-1, const int wMax=-1)
Print a double using scientific notation cropping decade values.
int setWmin(int wMin)
Set the default minimum width.
double cropSigDigits(const double d, int sigDigits) const
Crop a double at a certain number of significant digits.
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
PrintCtrl * m_pc
Pointer to the PrintCtrl class.
This file contains definitions for utility functions and text for modules, inputfiles, logs, textlogs, HTML_logs (see Input File Handling, Diagnostic Output, Writing messages to the screen and Writing HTML Logfiles).
void pr_de(const double d, int sigDigits=-1, const int wMin=-1, const int wMax=-1)
Print a double using scientific notation.
int setSigDigits(int sigDigits)
Set the default significant digits to output.
int setSigDigits(int sigDigits)
Set the default significant digits to output.
~LogPrintCtrl()
Destructor.
int setWmax(int wMax)
Set the default maximum width.
int setNdec(int nDecades)
Set the default value of N decade.
double cropAbs10(const double d, const int nDecades) const
Crop a double at a certain decade level.
double cropSigDigits(const double d, int sigDigits) const
Crop a double at a certain number of significant digits.
This class provides some printing and cropping utilities.
Declarations for a simple class that augments the logfile printing capabilities (see Cantera::LogPrin...
void writelog(const std::string &msg)
Write a message to the screen.
void pr_de_c10(const double d, int sigDigits=-1, const int wMin=-1, const int wMax=-1)
Print a double using scientific notation cropping decade values.
int setNdec(int nDecades)
Set the default value of N decade.
std::ostream * m_ffss
Pointer to the ostream where this class actually prints its information.
std::ostringstream m_os
local stringstream class for temp output
int setWmax(int wMax)
Set the default maximum width.