diff --git a/src/helper-fns.h b/src/helper-fns.h
index b1a1e37f05f744bcf689db179165a9d33bb7627b..39d919aa7b4c8472355516557b60ec4d80715a80 100644 (file)
--- a/src/helper-fns.h
+++ b/src/helper-fns.h
*/
#include <string.h>
*/
#include <string.h>
-
+#include <vector>
#include <sstream>
// calling helperfns_read_number(string, false), it's not obvious, what
#include <sstream>
// calling helperfns_read_number(string, false), it's not obvious, what
return v;
}
return v;
}
+inline std::vector<gdouble> helperfns_read_vector(const gchar* value){
+ std::vector<gdouble> v;
+ std::istringstream is(value);
+ gdouble d;
+ while (is >> d){
+ v.push_back(d);
+ }
+ return v;
+}
+
#endif /* !SEEN_HELPER_FNS_H */
/*
#endif /* !SEEN_HELPER_FNS_H */
/*