21 #include <unity/scopes/Variant.h>
22 #include <unity/util/DefinesPtrs.h>
104 std::string
city()
const;
237 void set_city(std::string
const& city);
294 std::unique_ptr<internal::LocationImpl> p;
296 friend class internal::LocationImpl;
bool has_region_name() const
Is there a region name property.
std::string region_name() const
Get the region name.
void set_area_code(std::string const &area_code)
Set the area code.
void set_latitude(double latitude)
Set the latitude.
void set_vertical_accuracy(double vertical_accuracy)
Set the vertical_accuracy.
bool has_region_code() const
Is there a region code property.
std::string country_code() const
Get the country code.
void set_country_name(std::string const &country_name)
Set the country name.
double latitude() const
Get the latitude.
bool has_country_name() const
Is there a country name property.
double longitude() const
Get the longitude.
Location(double latitude, double longitude)
Construct a new Location with the specified latitude and longitude.
void set_city(std::string const &city)
Set the city name.
bool has_zip_postal_code() const
Is there a zip / postal code property.
bool has_country_code() const
Is there a country code property.
Top-level namespace for all things Unity-related.
Definition: Version.h:49
void set_zip_postal_code(std::string const &zip_postal_code)
Set the zip/postal code.
void set_country_code(std::string const &country_code)
Set the country code.
std::map< std::string, Variant > VariantMap
A dictionary of (string, Variant) pairs.
Definition: Variant.h:38
std::string city() const
Get the city name.
Definition: ActionMetadata.h:31
double vertical_accuracy() const
Get the vertical accuracy.
std::string country_name() const
Get the country name.
std::string region_code() const
Get the region code.
bool has_area_code() const
Is there an area code property.
double altitude() const
Get the altitude.
bool has_vertical_accuracy() const
Is there a vertical accuracy property.
bool has_city() const
Is there a city property.
void set_region_code(std::string const ®ion_code)
Set the region code.
std::string zip_postal_code() const
Get the zip or postal code.
void set_horizontal_accuracy(double horizontal_accuracy)
Set the horizontal accuracy.
bool has_altitude() const
Is there an altitude property.
VariantMap serialize() const
Return a dictionary of all location attributes.
double horizontal_accuracy() const
Get the horizontal accuracy.
bool has_horizontal_accuracy() const
Is there a horizontal accuracy property.
void set_region_name(std::string const ®ion_name)
Set the region name.
void set_altitude(double altitude)
Set the altitude.
std::string area_code() const
Get the area code.
Holds location attributes such as latitude, longitude, etc.
Definition: Location.h:39
void set_longitude(double longitude)
Set the longitude.