Chebyshev
Unit testing for scientific software
chebyshev::output::field_options Class Reference

Custom options for printing a certain field. More...

#include <output.h>

Public Types

using FieldInterpreter = std::function< std::string(const std::string &)>
 

Public Member Functions

 field_options (unsigned int columnWidth)
 

Public Attributes

unsigned int columnWidth = CHEBYSHEV_OUTPUT_WIDTH
 Width for the column associated with the field.
 
FieldInterpreter fieldInterpreter = [](const std::string& s) { return s; }
 A function which gets as input the value of a field as a string and returns a new string (e.g. More...
 
std::map< std::string, long double > additionalFields {}
 Additional custom options.
 

Detailed Description

Custom options for printing a certain field.

Member Data Documentation

◆ fieldInterpreter

FieldInterpreter chebyshev::output::field_options::fieldInterpreter = [](const std::string& s) { return s; }

A function which gets as input the value of a field as a string and returns a new string (e.g.

"1" -> "FAIL" in the field "failed").


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