9  std::istringstream iss(d);
 
   12  while (std::getline(iss, token, t)) {
 
   13    boost::algorithm::trim(token);
 
   14    size_t      pos   = token.find(
'=');
 
   15    std::string key   = token.substr(0, pos);
 
   16    std::string value = token.substr(pos + 1);
 
   17    boost::algorithm::trim(key);
 
   18    boost::algorithm::trim(value);
 
 
   49  std::string str(adf_waveform_line);
 
   51  std::string::iterator new_end = std::unique(str.begin(), str.end(), [](
char a, 
char b)
 
   52                                              { return a == b && a == 
' '; });
 
   54  str.erase(new_end, str.end());
 
   57  std::istringstream ins(str);
 
   63  std::getline(ins, line, 
' ');
 
   65    waveform_id = std::stoi(line);
 
   67  catch (std::exception 
const& ex) {
 
   68    std::cerr << 
"could not parse the waveform_id:" << ex.what() << 
"\n";
 
   74  std::getline(ins, line, 
' ');
 
   76    nsamples = std::stoi(line);
 
   77    std::cout << 
"line=" << line << 
" nsamples=" << nsamples << 
"\n";
 
   79  catch (std::exception 
const& ex) {
 
   80    std::cerr << 
"could not parse the waveform_id:" << ex.what() << 
"\n";
 
   84  waveform_samples.reserve(nsamples);
 
   86  while (std::getline(ins, line, 
' ')) {
 
   87    T sample = atof(line.c_str());
 
   88    waveform_samples.push_back(sample);
 
   90  if (waveform_samples.size() != nsamples) {
 
   91    std::cerr << 
"mismatched number of samples : expecting " << nsamples << 
" but got " << waveform_samples.size() << 
"\n";