2010-02-16 19:31:25 +01:00
|
|
|
#include "calibrationrequest.hh"
|
2010-02-19 11:40:55 +01:00
|
|
|
#include "referencepoint.hh"
|
2010-02-16 19:31:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* *** Write accessors *** */
|
|
|
|
|
|
|
|
|
2010-02-19 11:40:55 +01:00
|
|
|
void CalibrationRequest::reference_point_backward_link() const
|
|
|
|
{
|
|
|
|
reference_point->add_request(this) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-02-16 19:31:25 +01:00
|
|
|
void CalibrationRequest::clear()
|
|
|
|
{
|
|
|
|
Request::clear() ;
|
|
|
|
reference_point = NULL ;
|
2010-02-19 11:40:55 +01:00
|
|
|
direction.clear() ;
|
2010-02-16 19:31:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* *** Operators *** */
|
|
|
|
|
|
|
|
|
|
|
|
const CalibrationRequest&
|
|
|
|
CalibrationRequest::operator=(const CalibrationRequest &source)
|
|
|
|
{
|
|
|
|
if (this == &source)
|
|
|
|
return *this ;
|
|
|
|
|
|
|
|
this->Request::operator=(source) ;
|
2010-02-19 11:40:55 +01:00
|
|
|
direction = source.direction ;
|
2010-02-16 19:31:25 +01:00
|
|
|
reference_point = source.reference_point ;
|
|
|
|
|
|
|
|
return *this ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool CalibrationRequest::operator==(const CalibrationRequest &source)
|
|
|
|
{
|
|
|
|
if (this == &source)
|
|
|
|
return true ;
|
|
|
|
|
|
|
|
return
|
|
|
|
this->Request::operator==(source) &&
|
2010-02-19 11:40:55 +01:00
|
|
|
direction == source.direction &&
|
2010-02-16 19:31:25 +01:00
|
|
|
reference_point == source.reference_point ;
|
|
|
|
}
|