66 lines
1.0 KiB
C++
66 lines
1.0 KiB
C++
#include "calibrationmeasurement.hh"
|
|
|
|
|
|
|
|
/*** Accesseurs lecture ***/
|
|
|
|
|
|
ReferencePoint* CalibrationMeasurement::get_reference_point(void) const
|
|
{
|
|
return reference_point ;
|
|
}
|
|
|
|
|
|
|
|
/*** Accesseurs écriture ***/
|
|
|
|
|
|
void CalibrationMeasurement::set_reference_point(const ReferencePoint *_rp)
|
|
{
|
|
reference_point = (ReferencePoint *) _rp ;
|
|
}
|
|
|
|
|
|
|
|
/*** Opé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) ;
|
|
}
|
|
|
|
|
|
|
|
std::ostream &operator<<(std::ostream &os, const CalibrationMeasurement &cm)
|
|
{
|
|
os
|
|
<< (Measurement) cm ;
|
|
|
|
return os ;
|
|
}
|