17 #ifndef mitkVectorPropertySerializer_h
18 #define mitkVectorPropertySerializer_h
20 #include <boost/lexical_cast.hpp>
51 template <
typename NUMBER_TYPE,
typename STRING_ARRAY,
typename DOUBLE_ARRAY>
52 void StringsToNumbers(
unsigned int count,
const STRING_ARRAY &strings, DOUBLE_ARRAY &numbers)
54 for (
unsigned int i = 0; i < count; ++i)
56 numbers[i] = boost::lexical_cast<NUMBER_TYPE>(strings[i]);
DataCollection - Class to facilitate loading/accessing structured data.
void StringsToNumbers(unsigned int count, const STRING_ARRAY &strings, DOUBLE_ARRAY &numbers)