MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / get_eeg_names

Method get_eeg_names

cpp_package/src/board_shim.cpp:381–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381std::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
402std::vector<int> BoardShim::get_board_presets (int board_id)
403{

Callers

nothing calls this directly

Calls 2

BrainFlowExceptionClass · 0.85
get_eeg_namesFunction · 0.50

Tested by

no test coverage detected