Skip to content

Commit e883fad

Browse files
author
Pavel Siska
committed
outputPlugin
1 parent 1e53c17 commit e883fad

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

new-process-api/outputPlugin.hpp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)