MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / add_python_processor

Function add_python_processor

nanofi/src/api/nanofi.cpp:548–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546}
547
548processor *add_python_processor(flow *flow, processor_logic* logic) {
549 if (nullptr == flow || nullptr == logic) {
550 return nullptr;
551 }
552 auto lambda = [logic](core::ProcessSession *ps, core::ProcessContext *cx) {
553 logic(static_cast<processor_session*>(ps), static_cast<processor_context*>(cx)); // Meh, sorry for this
554 };
555 auto proc = flow->addCallback(nullptr, lambda);
556 return static_cast<processor*>(proc.get());
557}
558
559flow * create_getfile(nifi_instance * instance, flow * parent_flow, GetFileConfig * c) {
560 static const std::string first_processor = "GetFile";

Callers

nothing calls this directly

Calls 2

addCallbackMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected