1 #ifndef CORE_VectorReader_HPP
2 #define CORE_VectorReader_HPP
12 unsigned int lmax=current.length();
16 unsigned int indexOB=current.find(
"[");
18 current=current.substr(indexOB+1);
19 lmax=current.length();
24 size_t indexC=current.find(
",");
25 size_t indexMax=current.find(
"]");
26 if (indexMax==tString::npos) indexMax=lmax;
29 while (indexC<indexMax) {
33 values.push_back(value);
35 current=current.substr(indexC+1,lmax-indexC-1);
36 lmax=current.length();
37 indexC=current.find(
",");
38 indexMax=current.find(
"]");
39 if (indexMax==tString::npos) {
52 v=current.substr(0,indexMax);
54 current=current.substr(indexMax+1,lmax-indexMax-1);
56 if (current[0]==
',') current=current.substr(1);
63 values.push_back(value);
#define tBoolean
Definition: types.h:35
static void parse(const tString &str, unsigned char &c)
parse unsigned char c in str
Definition: CORE_String.h:418
static tBoolean readVector(tString &str, vector< T > &vs)
read vector of string v v=[x,y,z,t] or x,y,z,t
Definition: CORE_VectorReader.hpp:7
#define tString
Definition: types.h:36
#define tReal
Definition: types.h:18