DDASToys for NSCLDAQ  6.2-000
Macros | Functions
StringsToIntegers.h File Reference

Definition of functions to convert strings of comma-delimited integers to a vector of ints. More...

#include <string>
#include <vector>
#include <CInvalidArgumentException.h>
Include dependency graph for StringsToIntegers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::vector< int > stringListToIntegers (std::string items)
 aA unbound function that takes a comma separated list of integer (in string form) and converts them into a vector of ints. * More...
 

Detailed Description

Definition of functions to convert strings of comma-delimited integers to a vector of ints.

Function Documentation

◆ stringListToIntegers()

std::vector<int> stringListToIntegers ( std::string  items)

aA unbound function that takes a comma separated list of integer (in string form) and converts them into a vector of ints. *

Parameters
itemsStringified comma separated list of integers. *
Returns
std::vector<int> Ordered vector of the integers decoded from the string. *
Exceptions
CInvalidArgumentExceptionThrows back to the caller if the item type is not a convertable type.