HEBench
hebench_types_harness.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_Harness_Types_H_0596d40a3cce4b108a81595c50eb286d
6 #define _HEBench_Harness_Types_H_0596d40a3cce4b108a81595c50eb286d
7 
8 #include <cstdint>
9 #include <functional>
10 #include <memory>
11 #include <ratio>
12 #include <string>
13 #include <unordered_map>
14 #include <vector>
15 
17 
18 #define IOS_MSG_DONE "[ DONE ] "
19 #define IOS_MSG_WARNING "[ WARNING ] "
20 #define IOS_MSG_ERROR "[ ERROR ] "
21 #define IOS_MSG_FAILED "[ FAIL ] "
22 #define IOS_MSG_INFO "[ Info ] "
23 #define IOS_MSG_OK "[ OK ] "
24 
25 namespace hebench {
26 namespace TestHarness {
27 
28 using DefaultTimeInterval = std::micro;
29 
30 template <typename T>
31 using unique_ptr_custom_deleter = std::unique_ptr<T, std::function<void(T *)>>;
32 
33 constexpr const char *FileNameNoExtReport = "report";
34 constexpr const char *FileNameNoExtSummary = "summary";
35 
36 // '\\' needs to be taken into account in case Windows is supported.
37 constexpr char separator = '/';
38 constexpr char hyphen = '-';
39 
40 } // namespace TestHarness
41 } // namespace hebench
42 
43 #endif // defined _HEBench_Harness_Types_H_0596d40a3cce4b108a81595c50eb286d
std::unique_ptr< T, std::function< void(T *)> > unique_ptr_custom_deleter
constexpr const char * FileNameNoExtReport
constexpr const char * FileNameNoExtSummary