Star.cpp   Star.cpp 
skipping to change at line 29 skipping to change at line 29
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#include "Star.hpp" #include "Star.hpp"
#include "StarMgr.hpp" #include "StarMgr.hpp"
#include "StelUtils.hpp" #include "StelUtils.hpp"
#include <QDebug> #include <QDebug>
#include <QString> #include <QString>
const QString STAR_TYPE = QStringLiteral("Star");
QString Star1::getNameI18n(void) const QString Star1::getNameI18n(void) const
{ {
if (getHip()) if (getHip())
{ {
const QString commonNameI18 = StarMgr::getCommonName(getHip( )); const QString commonNameI18 = StarMgr::getCommonName(getHip( ));
if (!commonNameI18.isEmpty()) return commonNameI18; if (!commonNameI18.isEmpty()) return commonNameI18;
if (StarMgr::getFlagSciNames()) if (StarMgr::getFlagSciNames())
{ {
const QString sciName = StarMgr::getSciName(getHip() ); const QString sciName = StarMgr::getSciName(getHip() );
if (!sciName.isEmpty()) return sciName; if (!sciName.isEmpty()) return sciName;
skipping to change at line 56 skipping to change at line 58
int Star1::hasComponentID(void) const int Star1::hasComponentID(void) const
{ {
if (getComponentIds()) if (getComponentIds())
{ {
return getComponentIds(); return getComponentIds();
} }
return 0; return 0;
} }
void Star1::print(void) void Star1::print(void) const
{ {
qDebug() << "hip: " << getHip() qDebug() << "hip: " << getHip()
<< ", componentIds: " << getComponentIds() << ", componentIds: " << getComponentIds()
<< ", x0: " << getX0() << ", x0: " << getX0()
<< ", x1: " << getX1() << ", x1: " << getX1()
<< ", bV: " << ((unsigned int)getBV()) << ", bV: " << ((unsigned int)getBV())
<< ", mag: " << ((unsigned int)getMag()) << ", mag: " << ((unsigned int)getMag())
<< ", spInt: " << getSpInt() << ", spInt: " << getSpInt()
<< ", dx0: " << getDx0() << ", dx0: " << getDx0()
<< ", dx1: " << getDx1() << ", dx1: " << getDx1()
<< ", plx: " << getPlx(); << ", plx: " << getPlx();
} }
void Star2::print(void) void Star2::print(void) const
{ {
qDebug() << "x0: " << getX0() qDebug() << "x0: " << getX0()
<< ", x1: " << getX1() << ", x1: " << getX1()
<< ", dx0: " << getDx0() << ", dx0: " << getDx0()
<< ", dx1: " << getDx1() << ", dx1: " << getDx1()
<< ", bV: " << getBV() << ", bV: " << getBV()
<< ", mag: " << getMag(); << ", mag: " << getMag();
} }
 End of changes. 3 change blocks. 
2 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/