21 #include <unity/scopes/Variant.h> 22 #include <unity/util/DefinesPtrs.h> 51 Location(
double latitude,
double longitude);
78 double altitude()
const;
84 bool has_altitude()
const;
91 std::string area_code()
const;
97 bool has_area_code()
const;
104 std::string city()
const;
110 bool has_city()
const;
117 std::string country_code()
const;
123 bool has_country_code()
const;
130 std::string country_name()
const;
136 bool has_country_name()
const;
143 double horizontal_accuracy()
const;
149 bool has_horizontal_accuracy()
const;
155 double latitude()
const;
161 double longitude()
const;
174 std::string region_code()
const;
180 bool has_region_code()
const;
187 std::string region_name()
const;
193 bool has_region_name()
const;
200 double vertical_accuracy()
const;
206 bool has_vertical_accuracy()
const;
213 std::string zip_postal_code()
const;
219 bool has_zip_postal_code()
const;
225 void set_altitude(
double altitude);
231 void set_area_code(std::string
const& area_code);
237 void set_city(std::string
const& city);
243 void set_country_code(std::string
const& country_code);
249 void set_country_name(std::string
const& country_name);
255 void set_horizontal_accuracy(
double horizontal_accuracy);
261 void set_latitude(
double latitude);
267 void set_longitude(
double longitude);
273 void set_region_code(std::string
const& region_code);
279 void set_region_name(std::string
const& region_name);
285 void set_vertical_accuracy(
double vertical_accuracy);
291 void set_zip_postal_code(std::string
const& zip_postal_code);
294 std::unique_ptr<internal::LocationImpl> p;
296 friend class internal::LocationImpl;
Top-level namespace for all things Unity-related.
Definition: Version.h:49
std::map< std::string, Variant > VariantMap
A dictionary of (string, Variant) pairs.
Definition: Variant.h:38
Definition: ActionMetadata.h:31
Holds location attributes such as latitude, longitude, etc.
Definition: Location.h:39