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

Car routing profile. More...

Inheritance diagram for gem::CarProfile:
Collaboration diagram for gem::CarProfile:

Public Member Functions

 CarProfile (EFuelType fuel=FT_Petrol, int massKg=0, double maxSpeed=0.) noexcept
 Default constructor.
bool operator== (const CarProfile &p) const
 Comparison operator.
bool operator!= (const CarProfile &p) const
 Comparison operator.
bool hasDefaultDimensions () const
 Default dimensions checker.
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

Car routing profile.

Constructor & Destructor Documentation

◆ CarProfile()

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

Default constructor.

Parameters
fuelfuel type. default is petrol
massKgmass in kg. default is 0
maxSpeedmax Speed in m/s. default is 0

Member Function Documentation

◆ hasDefaultDimensions()

bool gem::CarProfile::hasDefaultDimensions ( ) const
inline

Default dimensions checker.

Returns
true if all dimensions are default ( i.e. mass is 0 and max speed is 0 )

Member Data Documentation

◆ fuel

EFuelType gem::MotorVehicleProfile::fuel
inherited

Engine fuel type. Default is petrol

◆ mass

int gem::MotorVehicleProfile::mass
inherited

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

◆ maxSpeed

double gem::MotorVehicleProfile::maxSpeed
inherited

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