MCPcopy Create free account
hub / github.com/apache/arrow / ListGetAll

Method ListGetAll

cpp/src/arrow/flight/sql/odbc/odbc_impl/ui/window.cc:246–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246std::vector<std::vector<std::wstring> > Window::ListGetAll() {
247#define BUF_LEN 1024
248 wchar_t buf[BUF_LEN];
249
250 std::vector<std::vector<std::wstring> > values;
251 const int num_columns = Header_GetItemCount(ListView_GetHeader(handle_));
252 const int num_items = ListView_GetItemCount(handle_);
253 for (int i = 0; i < num_items; ++i) {
254 std::vector<std::wstring> row;
255 for (int j = 0; j < num_columns; ++j) {
256 ListView_GetItemText(handle_, i, j, buf, BUF_LEN);
257 row.emplace_back(buf);
258 }
259 values.push_back(row);
260 }
261
262 return values;
263}
264
265void Window::AddTab(const std::wstring& name, int index) {
266 TCITEM tab_control_item;

Callers 1

SaveParametersMethod · 0.80

Calls 2

emplace_backMethod · 0.80
push_backMethod · 0.80

Tested by

no test coverage detected