| 183 | } |
| 184 | |
| 185 | ::matlab::data::StructArray manage_proxy( |
| 186 | const std::shared_ptr<libmexclass::proxy::Proxy>& proxy, |
| 187 | const arrow::Type::type type_id) { |
| 188 | namespace mda = ::matlab::data; |
| 189 | mda::ArrayFactory factory; |
| 190 | const auto proxy_id = libmexclass::proxy::ProxyManager::manageProxy(proxy); |
| 191 | mda::StructArray output = factory.createStructArray({1, 1}, {"ProxyID", "TypeID"}); |
| 192 | output[0]["ProxyID"] = factory.createScalar(proxy_id); |
| 193 | output[0]["TypeID"] = factory.createScalar(static_cast<int32_t>(type_id)); |
| 194 | return output; |
| 195 | } |
| 196 | |
| 197 | } // anonymous namespace |
| 198 | |