HEBench
hebench_report_overview_header.h
Go to the documentation of this file.
1
2
// Copyright (C) 2021 Intel Corporation
3
// SPDX-License-Identifier: Apache-2.0
4
5
#ifndef _HEBench_ReportHeader_H_0596d40a3cce4b108a81595c50eb286d
6
#define _HEBench_ReportHeader_H_0596d40a3cce4b108a81595c50eb286d
7
8
#include <cstdint>
9
#include <ostream>
10
#include <string>
11
#include <string_view>
12
#include <vector>
13
14
namespace
hebench
{
15
namespace
ReportGen {
16
17
struct
OverviewHeader
18
{
19
public
:
20
static
constexpr
const
char
*
EndStateOK
=
"OK"
;
21
static
constexpr
const
char
*
EndStateGeneralFailure
=
"Failed"
;
22
23
OverviewHeader
() :
24
other
(0) {}
25
26
std::string
workload_name
;
27
std::string
end_state
;
28
std::string
report_file
;
29
std::string
category
;
30
std::string
data_type
;
31
std::string
cipher_text
;
32
std::string
scheme
;
33
std::string
security
;
34
std::int64_t
other
;
35
std::vector<std::string>
w_params
;
36
37
void
parseHeader
(
const
std::string &filename,
const
std::string &s_header,
const
std::string &s_end_state);
38
39
// outputs header without workload parameters
40
void
outputHeader
(std::ostream &os,
bool
new_line =
true
);
41
42
private
:
43
static
std::vector<std::string_view> extractInfoFromCSVLine(std::string_view s_row,
44
const
std::string_view &s_tag,
45
std::size_t num_values);
46
static
std::string extractCiphertextBitset(std::vector<std::string_view> s_indices);
47
};
48
49
}
// namespace ReportGen
50
}
// namespace hebench
51
52
#endif
// defined _HEBench_ReportHeader_H_0596d40a3cce4b108a81595c50eb286d
hebench
Definition:
hebench_benchmark_category.h:18
hebench::ReportGen::OverviewHeader
Definition:
hebench_report_overview_header.h:18
hebench::ReportGen::OverviewHeader::EndStateOK
static constexpr const char * EndStateOK
Definition:
hebench_report_overview_header.h:20
hebench::ReportGen::OverviewHeader::outputHeader
void outputHeader(std::ostream &os, bool new_line=true)
Definition:
hebench_report_overview_header.cpp:171
hebench::ReportGen::OverviewHeader::w_params
std::vector< std::string > w_params
Definition:
hebench_report_overview_header.h:35
hebench::ReportGen::OverviewHeader::data_type
std::string data_type
Definition:
hebench_report_overview_header.h:30
hebench::ReportGen::OverviewHeader::scheme
std::string scheme
Definition:
hebench_report_overview_header.h:32
hebench::ReportGen::OverviewHeader::OverviewHeader
OverviewHeader()
Definition:
hebench_report_overview_header.h:23
hebench::ReportGen::OverviewHeader::report_file
std::string report_file
Definition:
hebench_report_overview_header.h:28
hebench::ReportGen::OverviewHeader::end_state
std::string end_state
Definition:
hebench_report_overview_header.h:27
hebench::ReportGen::OverviewHeader::other
std::int64_t other
Definition:
hebench_report_overview_header.h:34
hebench::ReportGen::OverviewHeader::security
std::string security
Definition:
hebench_report_overview_header.h:33
hebench::ReportGen::OverviewHeader::parseHeader
void parseHeader(const std::string &filename, const std::string &s_header, const std::string &s_end_state)
Definition:
hebench_report_overview_header.cpp:94
hebench::ReportGen::OverviewHeader::EndStateGeneralFailure
static constexpr const char * EndStateGeneralFailure
Definition:
hebench_report_overview_header.h:21
hebench::ReportGen::OverviewHeader::workload_name
std::string workload_name
Definition:
hebench_report_overview_header.h:26
hebench::ReportGen::OverviewHeader::cipher_text
std::string cipher_text
Definition:
hebench_report_overview_header.h:31
hebench::ReportGen::OverviewHeader::category
std::string category
Definition:
hebench_report_overview_header.h:29
report_gen
report_compiler_lib
include
hebench_report_overview_header.h
Generated by
1.9.1