46 lines
900 B
C++
46 lines
900 B
C++
#include "calibrationmeasurement.hh"
|
|
|
|
|
|
|
|
/* *** Operators *** */
|
|
|
|
|
|
const 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 ;
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Because a ReferencePoint displays its list of CalibrationMeasurement,
|
|
* the ReferencePoint associated with a CalibrationMeasurement is not
|
|
* displayed. Therefore, this is a simple mapping to
|
|
* operator<<(std::ostream&, const Measurement&)
|
|
*/
|
|
std::ostream &operator<<(std::ostream &os, const CalibrationMeasurement &cm)
|
|
{
|
|
os
|
|
<< (Measurement) cm ;
|
|
|
|
return os ;
|
|
}
|