Maps SDK for C++ 1.0.0
Loading...
Searching...
No Matches
gem::MotorVehicleProfile Struct Reference

Motor vehicle profile. More...

Inheritance diagram for gem::MotorVehicleProfile:
Collaboration diagram for gem::MotorVehicleProfile:

Public Member Functions

 MotorVehicleProfile (EFuelType fuel, int massKg, double maxSpeed=0.) noexcept
 default constructor MotorVehicleProfile
bool operator== (const MotorVehicleProfile &p) const
 Comparison operator.
bool operator!= (const MotorVehicleProfile &p) const
 Comparison operator.

Public Attributes

EFuelType fuel
int mass
double maxSpeed
String plateNumber

Detailed Description

Motor vehicle profile.

This is a base class for car and truck profiles

Constructor & Destructor Documentation

◆ MotorVehicleProfile()

gem::MotorVehicleProfile::MotorVehicleProfile ( EFuelType fuel,
int massKg,
double maxSpeed = 0. )
inlinenoexcept

default constructor MotorVehicleProfile

Parameters
fuelfuel type
massKgmass in kg
maxSpeedmax speed in m/s

Member Data Documentation

◆ fuel

EFuelType gem::MotorVehicleProfile::fuel

Engine fuel type. Default is petrol

◆ mass

int gem::MotorVehicleProfile::mass

Vehicle mass in kg. By default it is 0 and is not considered in routing

◆ maxSpeed

double gem::MotorVehicleProfile::maxSpeed

Vehicle max speed im m/s. By default it is 0. and is not considered in routing

◆ plateNumber

String gem::VehicleRegistration::plateNumber
inherited

Vehicle plate number