mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 05:45:35 +08:00
Initial structure for refactoring, some conversions still missing. Especially required further test cases.
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Geo
|
||||
/*!
|
||||
* \brief Longitude
|
||||
*/
|
||||
class CGeoLongitude : public CGeoEarthAngle<CGeoLongitude>
|
||||
class CLongitude : public CEarthAngle<CLongitude>
|
||||
{
|
||||
protected:
|
||||
/*!
|
||||
@@ -19,32 +19,32 @@ protected:
|
||||
virtual QString stringForConverter() const
|
||||
{
|
||||
QString s = "longitude ";
|
||||
return s.append(CGeoEarthAngle::stringForConverter());
|
||||
return s.append(CEarthAngle::stringForConverter());
|
||||
}
|
||||
|
||||
public:
|
||||
/*!
|
||||
* \brief Default constructor
|
||||
*/
|
||||
CGeoLongitude() : CGeoEarthAngle() {}
|
||||
CLongitude() : CEarthAngle() {}
|
||||
|
||||
/*!
|
||||
* \brief Copy constructor
|
||||
* \param Longitude
|
||||
*/
|
||||
CGeoLongitude(const CGeoLongitude &Longitude) : CGeoEarthAngle(Longitude) {}
|
||||
CLongitude(const CLongitude &Longitude) : CEarthAngle(Longitude) {}
|
||||
|
||||
/*!
|
||||
* \brief Init by double value
|
||||
* \param value
|
||||
* \param unit
|
||||
*/
|
||||
CGeoLongitude(double value, const BlackMisc::PhysicalQuantities::CAngleUnit &unit): CGeoEarthAngle(value, unit) {}
|
||||
CLongitude(double value, const BlackMisc::PhysicalQuantities::CAngleUnit &unit): CEarthAngle(value, unit) {}
|
||||
|
||||
/*!
|
||||
* \brief Virtual destructor
|
||||
*/
|
||||
virtual ~CGeoLongitude() {}
|
||||
virtual ~CLongitude() {}
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user