TE = BrukerHM[(std::string) "ACQ_echo_time"].GetDoubleValue();
};
-double BrukerObjectVaryingProperties::getTE(int theValue) const{
- if (theValue < TE.size() && theValue >=0) {return TE[theValue];}
+double BrukerObjectVaryingProperties::getTE(unsigned int theValue) const{
+ if (theValue < TE.size() ) {return TE[theValue];}
else throw 0;
}
TE = theValue;
}*/
-double BrukerObjectVaryingProperties::getPositionP(int theValue) const{
- if (theValue < PositionP.size() && theValue >=0) return PositionP[theValue];
+double BrukerObjectVaryingProperties::getPositionP(unsigned int theValue) const{
+ if (theValue < PositionP.size() ) return PositionP[theValue];
else throw 0;
}
PositionP = theValue;
}*/
-double BrukerObjectVaryingProperties::getPositionR(int theValue) const{
- if (theValue < PositionR.size() && theValue >=0) return PositionR[theValue];
+double BrukerObjectVaryingProperties::getPositionR(unsigned int theValue) const{
+ if (theValue < PositionR.size() ) return PositionR[theValue];
else throw 0;
}
PositionP = theValue;
}*/
-double BrukerObjectVaryingProperties::getPositionS(int theValue) const{
- if (theValue < PositionS.size() && theValue >=0) return PositionS[theValue];
+double BrukerObjectVaryingProperties::getPositionS(unsigned int theValue) const{
+ if (theValue < PositionS.size() ) return PositionS[theValue];
else throw 0;
}
PositionP = theValue;
}*/
-int BrukerObjectVaryingProperties::getAcquisitionOrder(int theValue) const{
- if (theValue <AcquisitionOrder.size() && theValue >=0) return AcquisitionOrder[theValue];
+int BrukerObjectVaryingProperties::getAcquisitionOrder(unsigned int theValue) const{
+ if (theValue <AcquisitionOrder.size()) return AcquisitionOrder[theValue];
else throw 0;
}
AcquisitionOrder=AcqOrder;
};
-std :: vector < std :: vector < double > > BrukerObjectVaryingProperties::getOrientation(int theValue) const{
- if (theValue <Orientation.size() && theValue >=0)return Orientation[theValue];
+std :: vector < std :: vector < double > > BrukerObjectVaryingProperties::getOrientation(unsigned int theValue) const{
+ if (theValue <Orientation.size())return Orientation[theValue];
else throw 0;
}
Orientation=Temp3D;
};
-double BrukerObjectVaryingProperties::getPositionTimePerNR(int theValue) const{
- if (theValue <PositionTimePerNR.size() && theValue >=0) return PositionTimePerNR[theValue];
+double BrukerObjectVaryingProperties::getPositionTimePerNR(unsigned int theValue) const{
+ if (theValue <PositionTimePerNR.size() ) return PositionTimePerNR[theValue];
else throw 0;
}
double temp;
/*
- les loop de 0 a 3 ne sont pas conceres par le temps car ils creent presque systematiquement
-un melange temporel des donnees, c'est pour cela que je ne calcule q'un temps moyen a partir de celles -ci
+ les loop de 0 a 3 ne sont pas concernes par le temps car ils creent presque systematiquement
+ un melange temporel des donnees, c'est pour cela que je ne calcule qu'un temps moyen a partir de celles -ci
*/
for (i=4; i<(LoopStruct.size()-1);i++)
{
BrukerObjectVaryingProperties();
~BrukerObjectVaryingProperties();
- double getTE (int theValue) const;
- double getPositionP (int theValue) const;
- double getPositionR (int theValue) const;
- double getPositionS (int theValue) const;
- double getPositionTimePerNR(int theValue) const;
- int getAcquisitionOrder (int theValue) const;
+ double getTE (unsigned int theValue) const;
+ double getPositionP (unsigned int theValue) const;
+ double getPositionR (unsigned int theValue) const;
+ double getPositionS (unsigned int theValue) const;
+ double getPositionTimePerNR(unsigned int theValue) const;
+ int getAcquisitionOrder (unsigned int theValue) const;
- std::vector<std::vector<double> > getOrientation(int theValue) const;
+ std::vector<std::vector<double> > getOrientation(unsigned int theValue) const;
bool init(std::map<std::string, BrukerFieldData> &BrukerHM, std::vector<int> &LoopStruct);