1 #ifndef CORE_VectorReader_HPP 2 #define CORE_VectorReader_HPP 16 tUIndex indexOB=current.find(
"[");
17 if (indexOB!=tString::npos) {
18 current=current.substr(indexOB+1);
19 lmax=current.length();
24 tUIndex indexC=current.find(
",");
25 tUIndex 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);
static void parse(const tString &str, tUChar &c)
parse unsigned char c in str
Definition: CORE_String.h:504
#define tBoolean
Definition: types.h:139
static tBoolean readVector(tString &str, vector< T > &vs)
read vector of string str v=[x,y,z,t] or x,y,z,t
Definition: CORE_VectorReader.hpp:7
this class describes an array
Definition: CORE_Array.h:19
void setValues(const tUIndex &n, const Q *v)
set the values of the array by copying the n first values of pointer v
Definition: CORE_Array.h:445
#define tUIndex
Definition: types.h:126
#define tString
Definition: types.h:135