MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / RowToPBData

Method RowToPBData

src/plugin/kernel/src/AFCKernelModule.cpp:1932–1949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1930}
1931
1932bool AFCKernelModule::RowToPBData(AFIRow* pRow, const uint32_t index, AFMsg::pb_entity_data* pb_data)
1933{
1934 ARK_ASSERT_RET_VAL(pRow != nullptr && index > 0 && pb_data != nullptr, false);
1935
1936 auto pNodeManager = GetNodeManager(pRow);
1937 if (!pNodeManager)
1938 {
1939 return false;
1940 }
1941
1942 auto& data_list = pNodeManager->GetDataList();
1943 for (auto& iter : data_list)
1944 {
1945 NodeToPBData(iter.second, pb_data);
1946 }
1947
1948 return true;
1949}
1950
1951bool AFCKernelModule::TableRowDataToPBData(
1952 const uint32_t index, uint32_t row, const uint32_t col, const AFIData& data, AFMsg::pb_entity_data* pb_data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected