36 #ifndef NEKTAR_LIBUTILITIES_PARSEUTILS_H 37 #define NEKTAR_LIBUTILITIES_PARSEUTILS_H 50 const std::string &str, std::vector<unsigned int> &out);
53 static bool GenerateVector(
const std::string &str, std::vector<T> &out);
73 static_assert(std::is_integral<T>::value && std::is_unsigned<T>::value,
74 "Unsigned integer type required.");
81 std::ostringstream ss;
82 auto first = v[0], last = v[0];
88 if (i != last + 1 && i != last)
111 #endif //NEKTAR_LIBUTILITIES_PARSEUTILS_HPP
#define LIB_UTILITIES_EXPORT
static bool GenerateVector(const std::string &str, std::vector< T > &out)
Takes a comma-separated string and converts it to entries in a vector.
static std::string GenerateSeqString(const std::vector< T > &v)
Generate a compressed comma-separated string representation of a vector of unsigned integers...
static bool GenerateSeqVector(const std::string &str, std::vector< unsigned int > &out)
Takes a comma-separated compressed string and converts it to entries in a vector. ...