Template Numerical Library: TNL::Benchmarks::JsonLogging Class Reference

Template Numerical Library version\ main:be7e16d88

Loading...
Searching...
No Matches
Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
TNL::Benchmarks::JsonLogging Class Reference
Inheritance diagram for TNL::Benchmarks::JsonLogging:
[legend]
Collaboration diagram for TNL::Benchmarks::JsonLogging:
[legend]

## Public Member Functions
| Logging (std::ostream &log, int verbose=1)
void | logResult (const std::string &performer, const HeaderElements &headerElements, const RowElements &rowElements, const WidthHints &columnWidthHints, const std::string &errorMessage="") override
void | writeErrorMessage (const std::string &message) override
void | writeHeader (const HeaderElements &headerElements, const WidthHints &widths)
void | writeRow (const HeaderElements &headerElements, const RowElements &rowElements, const WidthHints &widths, const std::string &errorMessage)
Public Member Functions inherited from TNL::Benchmarks::Logging
| Logging (std::ostream &log, int verbose=1)
int | getVerbose () const
virtual void | setMetadataColumns (const MetadataColumns &elements)
virtual void | setMetadataElement (const typename MetadataColumns::value_type &element, int insertPosition=-1)
virtual void | setMetadataWidths (const std::map< std::string, int > &widths)
void | setVerbose (int verbose)

## Static Protected Member Functions
static std::string | _to_string (double num, int precision=0, bool fixed=false)
static std::string | escape_json (const std::string &s)

## Protected Attributes
HeaderElements | lastHeaderElements
Protected Attributes inherited from TNL::Benchmarks::Logging
bool | header_changed = true
std::ostream & | log
MetadataColumns | metadataColumns
std::map< std::string, int > | metadataWidths
int | verbose = 0

## Additional Inherited Members
Public Types inherited from TNL::Benchmarks::Logging
using | HeaderElements = std::vector< std::string >
using | MetadataColumns = std::vector< MetadataElement >
using | MetadataElement = std::pair< std::string, std::string >
using | RowElements = LoggingRowElements
using | WidthHints = std::vector< int >

## Member Function Documentation

## ◆ logResult()

void TNL::Benchmarks::JsonLogging::logResult | ( | const std::string & | performer,
|  | const HeaderElements & | headerElements,
|  | const RowElements & | rowElements,
|  | const WidthHints & | columnWidthHints,
|  | const std::string & | errorMessage = "" )
| inlineoverridevirtual

Implements TNL::Benchmarks::Logging.

## ◆ writeErrorMessage()

void TNL::Benchmarks::JsonLogging::writeErrorMessage | ( | const std::string & | message | ) |
| inlineoverridevirtual

Implements TNL::Benchmarks::Logging.

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

- src/TNL/Benchmarks/JsonLogging.h