Commit d9e13593 authored by Akarsh Simha's avatar Akarsh Simha

Let SkyObject::TYPE_UNKNOWN be 255 to give space for expansion

Adding more object types however, potentially causes data
misrepresentation (is not backwards compatible) and must be done only
when really needed.

CCMAIL: mutlaqja@ikarustech.com
parent e123c8fc
...@@ -47,8 +47,8 @@ ...@@ -47,8 +47,8 @@
* 18: Radio Source * 18: Radio Source
* 19: Satellite * 19: Satellite
* 20: Supernova * 20: Supernova
* 21: TYPE_UNKNOWN * 255: TYPE_UNKNOWN
* *
* magnitude = Apparent Magnitude of the object * magnitude = Apparent Magnitude of the object
* position_angle = Position Angle of the object * position_angle = Position Angle of the object
* major_axis = Major Axis Length (arcmin) * major_axis = Major Axis Length (arcmin)
......
...@@ -112,7 +112,7 @@ public: ...@@ -112,7 +112,7 @@ public:
GASEOUS_NEBULA=5, PLANETARY_NEBULA=6, SUPERNOVA_REMNANT=7, GALAXY=8, GASEOUS_NEBULA=5, PLANETARY_NEBULA=6, SUPERNOVA_REMNANT=7, GALAXY=8,
COMET=9, ASTEROID=10, CONSTELLATION=11, MOON=12, ASTERISM=13, COMET=9, ASTEROID=10, CONSTELLATION=11, MOON=12, ASTERISM=13,
GALAXY_CLUSTER=14, DARK_NEBULA=15, QUASAR=16, MULT_STAR=17, RADIO_SOURCE=18, GALAXY_CLUSTER=14, DARK_NEBULA=15, QUASAR=16, MULT_STAR=17, RADIO_SOURCE=18,
SATELLITE=19, SUPERNOVA=20, TYPE_UNKNOWN }; SATELLITE=19, SUPERNOVA=20, TYPE_UNKNOWN=255 };
/** /**
*@return A translated string indicating the type name for a given type number *@return A translated string indicating the type name for a given type number
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment