You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2019/01/31 12:14:25 UTC

[GitHub] phrocker commented on a change in pull request #436: MINIFICPP-667: Add structural definitions to work out plan for C migr…

phrocker commented on a change in pull request #436: MINIFICPP-667: Add structural definitions to work out plan for C migr…
URL: https://github.com/apache/nifi-minifi-cpp/pull/436#discussion_r252643664
 
 

 ##########
 File path: nanofi/src/cxx/nanofi_cpp_layer.cpp
 ##########
 @@ -0,0 +1,65 @@
+#include <string>
+#include <map>
+#include <memory>
+#include <utility>
+#include <exception>
+
+#include "api/nanofi.h"
+#include "core/Core.h"
+#include "core/expect.h"
+#include "cxx/Instance.h"
+#include "cxx/Plan.h"
+#include "ResourceClaim.h"
+#include "processors/GetFile.h"
+#include "core/logging/LoggerConfiguration.h"
+#include "utils/StringUtils.h"
+
+#include "cxx/nanofi_cpp_layer.h"
+
+class API_INITIALIZER {
+ public:
+  static int initialized;
+};
+
+int API_INITIALIZER::initialized = initialize_api();
+
 
 Review comment:
   @arpadboda I'm going to merge this PR since some of this has made it's way elsewhere and this was just a proof of concept; however, it may make sense to begin isolating the cpp layer a little more like this for the eventuality that we remote it entirely. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services