Template Numerical Library version\ main:4e58ea6
Loading...
Searching...
No Matches
TNL::Benchmarks::JsonLogging Class Reference
Inheritance diagram for TNL::Benchmarks::JsonLogging:
Collaboration diagram for TNL::Benchmarks::JsonLogging:

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::ostreamlog
 
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

◆ writeErrorMessage()

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

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