We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e53c17 commit e883fadCopy full SHA for e883fad
new-process-api/outputPlugin.hpp
@@ -0,0 +1,25 @@
1
+#pragma once
2
+
3
+#include "fieldManager.hpp"
4
+#include "flowRecord.hpp"
5
+#include "processPluginEntry.hpp"
6
7
+namespace ipxp {
8
9
+class OutputPlugin {
10
+public:
11
+ OutputPlugin(const FieldManager& fieldManager, const std::vector<ProcessPluginEntry>& plugins)
12
+ : m_fieldManager(fieldManager)
13
+ , m_plugins(plugins)
14
+ {
15
+ }
16
17
+ virtual void processRecord(FlowRecordUniquePtr& flowRecord) = 0;
18
19
+protected:
20
+ const FieldManager& m_fieldManager;
21
+ const std::vector<ProcessPluginEntry>& m_plugins;
22
+ virtual ~OutputPlugin() = default;
23
+};
24
25
+} // namespace ipxp
0 commit comments