Hi @CodeRat
I made some changes to the C++ sample datalayer.register.node and tested the FlatBuffer schema you sent in your post.
I managed to provide the FlatBuffer in the Data Layer with these lines:
// Register a node as flatbuffer value
flatbuffers::FlatBufferBuilder builder;
std::vector<flatbuffers::Offset<vectorPointClusters::PointClusters>> vecPointClusters;
auto actPointClusters = vectorPointClusters::CreatePointClusters(builder, 43.0, 4.0, 555.0, 4, 10);
vecPointClusters.push_back(actPointClusters);
auto actPointClusters2 = vectorPointClusters::CreatePointClusters(builder, 2.0, 6.0, 222.0, 6, 7);
vecPointClusters.push_back(actPointClusters2);
auto pointClusterVec = builder.CreateVector(vecPointClusters);
vectorPointClusters::PointClusterVecBuilder vecClusters(builder);
vecClusters.add_pointcluster_vec(pointClusterVec);
auto flattbufferFinished = vecClusters.Finish();
builder.Finish(flattbufferFinished);
comm::datalayer::Variant myFlatbuffer;
myFlatbuffer.shareFlatbuffers(builder);
std::cout << "INFO Register node 'sdk-cpp-registernode/myFlatbuffer' " << std::endl;
result = provider->registerNode("sdk-cpp-registernode/myFlatbuffer", new MyProviderNode(myFlatbuffer));
Thats what it looks like in the Data Layer:
FlatBuffer in Data Layer
I attached also the full project here, so you can test it yourself.
Best regards,
Nick
... View more