This commit is contained in:
+13
-1
@@ -1,3 +1,6 @@
|
|||||||
|
generic
|
||||||
|
type Meta is private;
|
||||||
|
type H is digits <>;
|
||||||
package Grl.Coordinates with
|
package Grl.Coordinates with
|
||||||
SPARK_Mode => On
|
SPARK_Mode => On
|
||||||
is
|
is
|
||||||
@@ -59,7 +62,7 @@ is
|
|||||||
Format_DMS.Cardinal_Lat in North | South
|
Format_DMS.Cardinal_Lat in North | South
|
||||||
and then Format_DMS.Cardinal_Lon in East | West;
|
and then Format_DMS.Cardinal_Lon in East | West;
|
||||||
|
|
||||||
-- DDM
|
-- DDM
|
||||||
type Format_DDM is record
|
type Format_DDM is record
|
||||||
Degree_Lat : DM_Degree_Lat;
|
Degree_Lat : DM_Degree_Lat;
|
||||||
Degree_Lon : DM_Degree_Lon;
|
Degree_Lon : DM_Degree_Lon;
|
||||||
@@ -92,6 +95,15 @@ is
|
|||||||
end case;
|
end case;
|
||||||
end record;
|
end record;
|
||||||
|
|
||||||
|
-- ------------------------ --
|
||||||
|
-- Location Type Definition --
|
||||||
|
-- ------------------------ --
|
||||||
|
type Location is record
|
||||||
|
Where : Coordinate;
|
||||||
|
Heuristic : H;
|
||||||
|
Data : Meta;
|
||||||
|
end record;
|
||||||
|
|
||||||
-- ---------------------------- --
|
-- ---------------------------- --
|
||||||
-- Converter / helper functions --
|
-- Converter / helper functions --
|
||||||
-- ---------------------------- --
|
-- ---------------------------- --
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
with Grl.Coordinates;
|
||||||
|
|
||||||
|
package Grl.Default is new Grl.Coordinates (Meta => Natural, H => Float);
|
||||||
@@ -1,3 +1,2 @@
|
|||||||
package Grl is
|
package Grl is
|
||||||
|
|
||||||
end Grl;
|
end Grl;
|
||||||
|
|||||||
Reference in New Issue
Block a user