![]() |
Faker C++
|
Classes | |
| struct | AirlineInfo |
| struct | Airplane |
| struct | Airport |
| struct | Range |
Enumerations | |
| enum class | AircraftType { Regional , Narrowbody , Widebody } |
Functions | |
| FAKER_CXX_EXPORT std::string_view | aircraftType () |
| Get a random aircraft type. | |
| FAKER_CXX_EXPORT Airplane | airplane () |
| Get a random airplane. | |
| FAKER_CXX_EXPORT AirlineInfo | airline () |
| Get a random airline. | |
| FAKER_CXX_EXPORT Airport | airport () |
| Get a random airport. | |
| FAKER_CXX_EXPORT std::string | seat (AircraftType aircraftType) |
| Get a random seat by aircraft type. | |
| FAKER_CXX_EXPORT std::string | recordLocator (bool allowNumerics=false) |
| Get a random record location. | |
| FAKER_CXX_EXPORT std::string | flightNumber (bool addLeadingZeros=false, unsigned int length=4) |
| Get a random flight number from given length. | |
| FAKER_CXX_EXPORT std::string | flightNumberByRange (bool addLeadingZeros=false, Range length={1, 4}) |
| Get a random flight number from given length. | |
|
strong |
| FAKER_CXX_EXPORT std::string_view faker::airline::aircraftType | ( | ) |
Get a random aircraft type.
| FAKER_CXX_EXPORT AirlineInfo faker::airline::airline | ( | ) |
Get a random airline.
| FAKER_CXX_EXPORT Airplane faker::airline::airplane | ( | ) |
Get a random airplane.
| FAKER_CXX_EXPORT Airport faker::airline::airport | ( | ) |
Get a random airport.
| FAKER_CXX_EXPORT std::string faker::airline::flightNumber | ( | bool | addLeadingZeros = false, |
| unsigned int | length = 4 ) |
Get a random flight number from given length.
| addLeadingZeros | whether to add leading zeros |
| length | the length of the flight number |
| FAKER_CXX_EXPORT std::string faker::airline::flightNumberByRange | ( | bool | addLeadingZeros = false, |
| Range | length = {1, 4} ) |
Get a random flight number from given length.
| addLeadingZeros | whether to add leading zeros |
| length | the length of the flight number |
| FAKER_CXX_EXPORT std::string faker::airline::recordLocator | ( | bool | allowNumerics = false | ) |
Get a random record location.
| FAKER_CXX_EXPORT std::string faker::airline::seat | ( | AircraftType | aircraftType | ) |
Get a random seat by aircraft type.
| aircraftType | the aircraft type |