Chebyshev
Unit testing for scientific software
|
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. | |
Custom options for printing a certain field.
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").