Chebyshev
Unit testing for scientific software
Loading...
Searching...
No Matches
chebyshev::output::output_settings Class Reference

Global settings of printing results to standard output. More...

#include <output.h>

Public Types

using OutputFormat_t

Public Attributes

std::map< std::string, std::string > fieldNames {}
 Map of field name to output string (e.g.
std::map< std::string, field_options > fieldOptions {}
 Options for the different fields.
std::vector< std::string > outputFiles {}
 A list of output files.
std::map< std::string, std::ofstream > openFiles {}
 A map of open output files, by filename.
unsigned int defaultColumnWidth = CHEBYSHEV_OUTPUT_WIDTH
 Default width for a field.
unsigned int outputPrecision = 1
 The number of digits to show in scientific notation.
OutputFormat_t outputFormat {}
 The output format to use to print to standard output.
OutputFormat_t defaultFileOutputFormat {}
 The default output format to use for files, when no format has been set for a file.
std::map< std::string, OutputFormat_t > fileOutputFormat {}
 The output format to use for a specific file, by filename.
bool quiet = false
 Whether to output to standard output.
bool outputToFile = true
 Whether to print the results to file.
bool wasSetup = false
 Whether the output module was setup.
LogLevel logLevel = LogLevel::INFO
 Log level for standard output and error messages.

Detailed Description

Global settings of printing results to standard output.

Member Typedef Documentation

◆ OutputFormat_t

using chebyshev::output::output_settings::OutputFormat_t
Initial value:
std::function<
std::string(
const std::vector<std::vector<std::string>>&,
const std::vector<std::string>&,
const output_settings&)>
Global settings of printing results to standard output.
Definition output.h:54

Member Data Documentation

◆ fieldNames

std::map<std::string, std::string> chebyshev::output::output_settings::fieldNames {}

Map of field name to output string (e.g.

"maxErr" -> "Max Err.").


The documentation for this class was generated from the following file: