1#include "../include/utils.h"
12 std::vector<int> data_vec;
15 std::stringstream ss(str);
21 std::getline(ss, substr,
',');
22 data_vec.push_back(std::stoi(substr));
37 std::vector<double> data_vec;
40 std::stringstream ss(str);
46 std::getline(ss, substr,
',');
47 data_vec.push_back(std::stod(substr));
static std::vector< double > analog_str_buf_to_double_vec(const std::string &str)
Convert comma-delimited string to double vector of analog values.
static std::vector< int > analog_str_buf_to_int_vec(const std::string &str)
Convert comma-delimited string to int vector of analog values.