2009-12-11 17:56:31 +01:00
|
|
|
|
#include "calibrationmeasurement.hh"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*** Accesseurs lecture ***/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ReferencePoint* CalibrationMeasurement::get_reference_point(void) const
|
|
|
|
|
{
|
|
|
|
|
return reference_point ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*** Accesseurs <20>criture ***/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CalibrationMeasurement::set_reference_point(const ReferencePoint *_rp)
|
|
|
|
|
{
|
|
|
|
|
reference_point = (ReferencePoint *) _rp ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*** Op<4F>rateurs ***/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CalibrationMeasurement
|
|
|
|
|
CalibrationMeasurement::operator=(const CalibrationMeasurement &cm)
|
|
|
|
|
{
|
|
|
|
|
if (this == &cm)
|
|
|
|
|
return *this ;
|
|
|
|
|
|
|
|
|
|
this->Measurement::operator=(cm) ;
|
|
|
|
|
reference_point = cm.reference_point ;
|
|
|
|
|
|
|
|
|
|
return *this ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool CalibrationMeasurement::operator==(const CalibrationMeasurement &cm)
|
|
|
|
|
{
|
|
|
|
|
if (this == &cm)
|
|
|
|
|
return true ;
|
|
|
|
|
|
|
|
|
|
return
|
|
|
|
|
this->Measurement::operator==(cm) &&
|
|
|
|
|
reference_point == cm.reference_point ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool CalibrationMeasurement::operator!=(const CalibrationMeasurement &cm)
|
|
|
|
|
{
|
|
|
|
|
return !(*this == cm) ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-01-04 17:10:42 +01:00
|
|
|
|
std::ostream &operator<<(std::ostream &os, const CalibrationMeasurement &cm)
|
2009-12-11 17:56:31 +01:00
|
|
|
|
{
|
|
|
|
|
os
|
2009-12-14 15:45:16 +01:00
|
|
|
|
<< (Measurement) cm ;
|
|
|
|
|
|
|
|
|
|
return os ;
|
2009-12-11 17:56:31 +01:00
|
|
|
|
}
|