| 379 | } |
| 380 | |
| 381 | std::vector<std::string> BoardShim::get_eeg_names (int board_id, int preset) |
| 382 | { |
| 383 | char eeg_names[4096]; |
| 384 | int string_len = 0; |
| 385 | int res = ::get_eeg_names (board_id, preset, eeg_names, &string_len, sizeof (eeg_names)); |
| 386 | if (res != (int)BrainFlowExitCodes::STATUS_OK) |
| 387 | { |
| 388 | throw BrainFlowException ("failed to get board info", res); |
| 389 | } |
| 390 | std::string line (eeg_names, 0, string_len); |
| 391 | std::istringstream ss (line); |
| 392 | std::vector<std::string> out; |
| 393 | std::string single_name; |
| 394 | while (std::getline (ss, single_name, ',')) |
| 395 | { |
| 396 | out.push_back (single_name); |
| 397 | } |
| 398 | |
| 399 | return out; |
| 400 | } |
| 401 | |
| 402 | std::vector<int> BoardShim::get_board_presets (int board_id) |
| 403 | { |
nothing calls this directly
no test coverage detected