1 #ifndef OSMIUM_OSM_TYPES_HPP
2 #define OSMIUM_OSM_TYPES_HPP
62 return std::atoll(
string);
66 return static_cast<object_version_type
>(std::atol(
string));
70 return static_cast<changeset_id_type
>(std::atol(
string));
74 return static_cast<signed_user_id_type
>(std::atol(
string));
78 return static_cast<num_changes_type
>(std::atol(
string));
83 #endif // OSMIUM_OSM_TYPES_HPP
object_version_type string_to_object_version(const char *string)
Definition: types.hpp:65
uint64_t unsigned_object_id_type
Type for OSM object (node, way, or relation) IDs where we only allow positive IDs.
Definition: types.hpp:47
object_id_type string_to_object_id(const char *string)
Definition: types.hpp:61
changeset_id_type string_to_changeset_id(const char *string)
Definition: types.hpp:69
int64_t object_id_type
Type for OSM object (node, way, or relation) IDs.
Definition: types.hpp:46
Namespace for everything in the Osmium library.
Definition: assembler.hpp:55
num_changes_type string_to_num_changes(const char *string)
Definition: types.hpp:77
uint16_t string_size_type
Definition: types.hpp:59
int32_t signed_user_id_type
Type for signed OSM user IDs.
Definition: types.hpp:51
uint32_t object_version_type
Type for OSM object version number.
Definition: types.hpp:48
uint32_t num_changes_type
Type for changeset num_changes.
Definition: types.hpp:52
uint32_t changeset_id_type
Type for OSM changeset IDs.
Definition: types.hpp:49
signed_user_id_type string_to_user_id(const char *string)
Definition: types.hpp:73
uint32_t user_id_type
Type for OSM user IDs.
Definition: types.hpp:50