2#include <NDEVR/Model.h>
49 static constexpr const char*
ValidRegex() {
return "*."; }
54 static constexpr const char*
TypeName() {
return "street_name"; }
105 static constexpr const char*
TypeName() {
return "surface_type"; }
156 static constexpr const char*
TypeName() {
return "surface_condition"; }
201 static constexpr const char*
TypeName() {
return "speed_limit"; }
268 static constexpr const char*
TypeName() {
return "street_info"; }
void set(t_property_type property, const t_type &value)
Sets a property value in the database.
constexpr decltype(auto) get() const
Retrieves a property value using a compile-time property constant, cast to the requested type.
bool is(t_property_type property, const StringView &value) const
Checks whether a string property matches the given StringView value.
Model()
Default constructor. Creates an uninitialized Model.
Model getChild(uint04 child) const
Returns the child model at the given child slot index.
void createChildren(uint04 child_size)
Creates multiple children at once.
Used to describe the speed limit of a road and used with StreetInfo object.
static constexpr const char * TypeName()
Returns the type identifier string for SpeedLimit models.
StringView getSpeedLimit() const
Returns the speed limit value as a string.
void setSpeedLimit(const String &speed_limit)
Sets the speed limit value as a string.
SpeedLimit(const Model &model)
Constructs a SpeedLimit from an existing Model.
StreetInfo(const Model &model)
Constructs a StreetInfo from an existing Model.
SurfaceType surfaceType()
Returns the surface type sub-model.
static constexpr const char * TypeName()
Returns the type identifier string for StreetInfo models.
SurfaceCondition surfaceCondition()
Returns the surface condition sub-model.
SpeedLimit speedLimit()
Returns the speed limit sub-model.
StreetName streetName()
Returns the street name sub-model.
A Model which contains information about the name of a street, road, highway, etc.
StreetName(const Model &model)
Constructs a StreetName from an existing Model.
StringView getStreet() const
Returns the street name string.
static constexpr const char * ValidRegex()
Returns a regex pattern for validating street names.
static constexpr const char * TypeName()
Returns the type identifier string for StreetName models.
void setStreet(const String &type)
Sets the street name string.
The core String View class for the NDEVR API.
The core String class for the NDEVR API.
Used to describe the condition of a surface for a StreetInfo object.
StringView getSurfaceCondition() const
Returns the surface condition description string.
static constexpr const char * ValidRegex()
Returns a regex pattern for validating surface condition values.
static constexpr const char * TypeName()
Returns the type identifier string for SurfaceCondition models.
SurfaceCondition(const Model &model)
Constructs a SurfaceCondition from an existing Model.
void setSurfaceCondition(const String &condition)
Sets the surface condition description string.
Used to describe the type of surface for a StreetInfo object.
SurfaceType(const Model &model)
Constructs a SurfaceType from an existing Model.
void setSurface(const String &type)
Sets the surface type description string.
static constexpr const char * TypeName()
Returns the type identifier string for SurfaceType models.
static constexpr const char * ValidRegex()
Returns a regex pattern for validating surface type values.
StringView getSurface() const
Returns the surface type description string.
The primary namespace for the NDEVR SDK.
@ type
The type identifier string for this model node.
@ uncompressed_data
Uncompressed binary data storage.