Skip to content

Class Argos::ExcelFormatter

ClassList > Argos > ExcelFormatter

Abstract base for formatters that turn a BenchmarkResult into an Excel workbook content.

  • #include <formatter.h>

Inherited by the following classes: Argos::BasicFormatter

Public Functions

Type Name
virtual void Fill (lxw_workbook * workbook, const BenchmarkResult & result) = 0
Fill the given workbook with the formatted result.

Protected Functions

Type Name
lxw_datetime convert_time_t_to_lxw (const time_t & raw_time)
Convert a POSIX time_t to a libxlsxwriterlxw_datetime .

Public Functions Documentation

function Fill

Fill the given workbook with the formatted result.

virtual void Argos::ExcelFormatter::Fill (
    lxw_workbook * workbook,
    const BenchmarkResult & result
) = 0

Parameters:

  • workbook Target workbook.
  • result Source result to format.

Protected Functions Documentation

function convert_time_t_to_lxw

Convert a POSIX time_t to a libxlsxwriterlxw_datetime .

lxw_datetime Argos::ExcelFormatter::convert_time_t_to_lxw (
    const time_t & raw_time
) 

Parameters:

  • raw_time Timestamp to convert.

Returns:

Equivalent lxw_datetime.



The documentation for this class was generated from the following file benchmark/exporter/formatter.h