Lattice Microbes 2.5
This is for whole cell modeling
Loading...
Searching...
No Matches
lm::Print Class Reference

Print messages to the console at varying levels of verbosity. More...

#include <Print.h>

Static Public Member Functions

static void printf (int level, const char *fmt,...)
 Prints to the console at varying levels of verbosity or "Severity".
static void printDateTimeString ()
 Print the date and time to the console.
static std::string getDateTimeString ()
 Gets the date and time as a string.
static int verbosityLevel ()
 Gets the verbosity level. Lower numbers are higher priority.
static void verbosityLevel (int x)
 Sets the verbosity level. Lower numbers are higher priority.
static bool ifPrinted (int x)
 True if a call to Print::printf(x, ...) would print to stdout.

Static Public Attributes

static const int VERBOSE_DEBUG = 10
static const int DEBUG = 9
static const int INFO = 4
static const int WARNING = 3
static const int ERROR = 2
static const int FATAL = 1

Detailed Description

Print messages to the console at varying levels of verbosity.

Member Function Documentation

◆ getDateTimeString()

std::string lm::Print::getDateTimeString ( )
static

Gets the date and time as a string.

Returns
Date and time as a string

◆ ifPrinted()

bool lm::Print::ifPrinted ( int x)
inlinestatic

True if a call to Print::printf(x, ...) would print to stdout.

Parameters
xVerbosity level
Returns
Predicate
Here is the caller graph for this function:

◆ printDateTimeString()

void lm::Print::printDateTimeString ( )
static

Print the date and time to the console.

Here is the call graph for this function:

◆ printf()

void lm::Print::printf ( int level,
const char * fmt,
... )
static

Prints to the console at varying levels of verbosity or "Severity".

Parameters
levelThe level of "Severity" as indicated above
fmtA printf style format string
Argumentsto the printf format string
Here is the caller graph for this function:

◆ verbosityLevel() [1/2]

int lm::Print::verbosityLevel ( )
inlinestatic

Gets the verbosity level. Lower numbers are higher priority.

Returns
Verbosity level
Here is the caller graph for this function:

◆ verbosityLevel() [2/2]

void lm::Print::verbosityLevel ( int x)
inlinestatic

Sets the verbosity level. Lower numbers are higher priority.

Parameters
xVerbosity level

Member Data Documentation

◆ DEBUG

const int lm::Print::DEBUG = 9
static

◆ ERROR

const int lm::Print::ERROR = 2
static

◆ FATAL

const int lm::Print::FATAL = 1
static

◆ INFO

const int lm::Print::INFO = 4
static

◆ VERBOSE_DEBUG

const int lm::Print::VERBOSE_DEBUG = 10
static

◆ WARNING

const int lm::Print::WARNING = 3
static

The documentation for this class was generated from the following files:
  • /data2/LM_zls_github/Lattice-Microbes/src/core/Print.h
  • /data2/LM_zls_github/Lattice-Microbes/src/core/Print.cpp