lintel 0.2.0
Loading...
Searching...
No Matches
NoopHistoryService.h
Go to the documentation of this file.
1#ifndef LINTEL_NOOPHISTORYSERVICE_H
2#define LINTEL_NOOPHISTORYSERVICE_H
3
4#include <memory>
5#include <string>
6#include <vector>
7
11
12namespace lintel {
21{
22private:
23 std::string m_processName;
24
25public:
28 explicit NoopHistoryService(std::shared_ptr<ProcessName> processName) : m_processName(processName->getProcessName())
29 {}
30
31 void historizeOf(std::vector<HistoryEntry> /*entries*/) override {}
32
33 [[nodiscard]] const std::string &getProcessName() const override { return m_processName; }
34
35 [[nodiscard]] std::vector<HistoryEntry> allOf() const override { return {}; }
36
37 [[nodiscard]] std::vector<HistoryEntry> allOf(const std::string & /*label*/) const override { return {}; }
38
39 [[nodiscard]] std::vector<HistoryEntry> allOf(const std::string & /*processName*/,
40 const std::string & /*serviceName*/) const override
41 {
42 return {};
43 }
44
45 [[nodiscard]] std::vector<HistoryEntry> allOfProcess(const std::string & /*processName*/) const override
46 {
47 return {};
48 }
49
50 [[nodiscard]] std::vector<HistoryEntry> allOfService(const std::string & /*serviceName*/) const override
51 {
52 return {};
53 }
54};
55
56}// namespace lintel
57#endif// LINTEL_NOOPHISTORYSERVICE_H
Definition IHistoryService.h:19
Definition NoopHistoryService.h:21
const std::string & getProcessName() const override
Definition NoopHistoryService.h:33
std::vector< HistoryEntry > allOf() const override
Definition NoopHistoryService.h:35
std::vector< HistoryEntry > allOfProcess(const std::string &) const override
Definition NoopHistoryService.h:45
std::vector< HistoryEntry > allOf(const std::string &) const override
Definition NoopHistoryService.h:37
std::vector< HistoryEntry > allOfService(const std::string &) const override
Definition NoopHistoryService.h:50
std::vector< HistoryEntry > allOf(const std::string &, const std::string &) const override
Definition NoopHistoryService.h:39
NoopHistoryService(std::shared_ptr< ProcessName > processName)
Definition NoopHistoryService.h:28
void historizeOf(std::vector< HistoryEntry >) override
Definition NoopHistoryService.h:31
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9