Krzysztof Grobelny | c8e3a64 | 2020-10-23 12:29:16 +0200 | [diff] [blame^] | 1 | #pragma once |
| 2 | |
| 3 | #include <chrono> |
| 4 | #include <string> |
| 5 | |
| 6 | class ReportParams final |
| 7 | { |
| 8 | public: |
| 9 | ReportParams& reportName(std::string val) |
| 10 | { |
| 11 | reportNameProperty = std::move(val); |
| 12 | return *this; |
| 13 | } |
| 14 | |
| 15 | const std::string& reportName() const |
| 16 | { |
| 17 | return reportNameProperty; |
| 18 | } |
| 19 | |
| 20 | ReportParams& reportingType(std::string val) |
| 21 | { |
| 22 | reportingTypeProperty = std::move(val); |
| 23 | return *this; |
| 24 | } |
| 25 | |
| 26 | const std::string& reportingType() const |
| 27 | { |
| 28 | return reportingTypeProperty; |
| 29 | } |
| 30 | |
| 31 | protected: |
| 32 | std::string reportNameProperty = "TestReport"; |
| 33 | std::string reportingTypeProperty = "OnRequest"; |
| 34 | }; |