herald  2.0.0
wgs84.h
1 // Copyright 2020-2021 Herald Project Contributors
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 #ifndef HERALD_WGS84_H
6 #define HERALD_WGS84_H
7 
8 #include "location_reference.h"
9 
10 #include <string>
11 
12 namespace herald {
13 namespace datatype {
14 
16  double latitude;
17  double longitude;
18  double altitude;
19  double radius;
20 
21  std::string description() override {
22  return "WGS84(lat=" + std::to_string(latitude) + ",lon=" + std::to_string(longitude) + ",alt=" + std::to_string(altitude) + ",radius=" + std::to_string(radius) + ")";
23  }
24 
25 };
26 
27 
28 
30  double latitude;
31  double longitude;
32  double altitude;
33 
34  std::string description() override {
35  return "WGS84(lat=" + std::to_string(latitude) + ",lon=" + std::to_string(longitude) + ",alt=" + std::to_string(altitude) + ")";
36  }
37 
38 };
39 
40 
41 } // end namespace
42 } // end namespace
43 
44 #endif
Acts as a non-global memory arena for arbitrary classes.
Definition: aggregates.h:15
Definition: location_reference.h:13