Faker C++
Loading...
Searching...
No Matches
faker::vehicle Namespace Reference

Functions

FAKER_CXX_EXPORT std::string_view bicycle (Locale locale=Locale::en_US)
 Returns a random bicycle type.
 
FAKER_CXX_EXPORT std::string_view color (Locale locale=Locale::en_US)
 Returns a random vehicle color.
 
FAKER_CXX_EXPORT std::string_view fuel (Locale locale=Locale::en_US)
 Returns a random vehicle fuel.
 
FAKER_CXX_EXPORT std::string_view manufacturer (Locale locale=Locale::en_US)
 Returns a random vehicle(car) manufacturer.
 
FAKER_CXX_EXPORT std::string_view model (Locale locale=Locale::en_US)
 Returns a random vehicle(car) model.
 
FAKER_CXX_EXPORT std::string_view type (Locale locale=Locale::en_US)
 Returns a random vehicle type.
 
FAKER_CXX_EXPORT std::string vehicleName (Locale locale=Locale::en_US)
 Returns a random vehicle(car).
 
FAKER_CXX_EXPORT std::string vin ()
 Returns a vehicle identification number (VIN).
 
FAKER_CXX_EXPORT std::string vrm ()
 Returns a vehicle registration number (Vehicle Registration Mark - VRM).
 

Function Documentation

◆ bicycle()

FAKER_CXX_EXPORT std::string_view faker::vehicle::bicycle ( Locale locale = Locale::en_US)

Returns a random bicycle type.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Bicycle type.
faker::vehicle::bicycle() // "Electric bike"
FAKER_CXX_EXPORT std::string_view bicycle(Locale locale=Locale::en_US)
Returns a random bicycle type.

◆ color()

FAKER_CXX_EXPORT std::string_view faker::vehicle::color ( Locale locale = Locale::en_US)

Returns a random vehicle color.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Vehicle color.
faker::vehicle::color() // "Silver"
FAKER_CXX_EXPORT std::string_view color(Locale locale=Locale::en_US)
Returns a random vehicle color.

◆ fuel()

FAKER_CXX_EXPORT std::string_view faker::vehicle::fuel ( Locale locale = Locale::en_US)

Returns a random vehicle fuel.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Vehicle fuel.
faker::vehicle::fuel() // "Diesel"
FAKER_CXX_EXPORT std::string_view fuel(Locale locale=Locale::en_US)
Returns a random vehicle fuel.

◆ manufacturer()

FAKER_CXX_EXPORT std::string_view faker::vehicle::manufacturer ( Locale locale = Locale::en_US)

Returns a random vehicle(car) manufacturer.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Car manufacturer.
FAKER_CXX_EXPORT std::string_view manufacturer(Locale locale=Locale::en_US)
Returns a random vehicle(car) manufacturer.

◆ model()

FAKER_CXX_EXPORT std::string_view faker::vehicle::model ( Locale locale = Locale::en_US)

Returns a random vehicle(car) model.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Car model.
faker::vehicle::model() // "Fiesta"
FAKER_CXX_EXPORT std::string_view model(Locale locale=Locale::en_US)
Returns a random vehicle(car) model.

◆ type()

FAKER_CXX_EXPORT std::string_view faker::vehicle::type ( Locale locale = Locale::en_US)

Returns a random vehicle type.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Vehicle type.
FAKER_CXX_EXPORT std::string_view type(Locale locale=Locale::en_US)
Returns a random vehicle type.

◆ vehicleName()

FAKER_CXX_EXPORT std::string faker::vehicle::vehicleName ( Locale locale = Locale::en_US)

Returns a random vehicle(car).

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Vehicle composed by a manufacturer and model.
faker::vehicle::vehicleName() // "BMW Explorer"
FAKER_CXX_EXPORT std::string vehicleName(Locale locale=Locale::en_US)
Returns a random vehicle(car).

◆ vin()

FAKER_CXX_EXPORT std::string faker::vehicle::vin ( )

Returns a vehicle identification number (VIN).

Returns
Vehicle identification number.
faker::vehicle::vin() // "YV1MH682762184654"
FAKER_CXX_EXPORT std::string vin()
Returns a vehicle identification number (VIN).

◆ vrm()

FAKER_CXX_EXPORT std::string faker::vehicle::vrm ( )

Returns a vehicle registration number (Vehicle Registration Mark - VRM).

Returns
Vehicle registration number.
faker::vehicle::vrm() // "MF56UPA"
FAKER_CXX_EXPORT std::string vrm()
Returns a vehicle registration number (Vehicle Registration Mark - VRM).