Faker C++
Loading...
Searching...
No Matches
Person.h
Go to the documentation of this file.
1#pragma once
2
3#include <optional>
4#include <string_view>
5
6#include "faker-cxx/Export.h"
7#include "types/Country.h"
8
9namespace faker::person
10{
11enum class PassportCountry;
12enum class Sex;
13enum class SsnCountry;
14enum class Language;
15
30 FAKER_CXX_EXPORT std::string_view firstName(std::optional<Country> country = std::nullopt,
31 std::optional<Sex> sex = std::nullopt);
32
45 FAKER_CXX_EXPORT std::string_view lastName(std::optional<Country> country = std::nullopt,
46 std::optional<Sex> sex = std::nullopt);
47
62 FAKER_CXX_EXPORT std::string fullName(std::optional<Country> country = std::nullopt, std::optional<Sex> sex = std::nullopt);
63
77 FAKER_CXX_EXPORT std::string_view prefix(std::optional<Country> country = std::nullopt,
78 std::optional<Sex> sex = std::nullopt);
79
89 FAKER_CXX_EXPORT std::string_view suffix(std::optional<Country> country = std::nullopt,
90 std::optional<Sex> sex = std::nullopt);
91
101 FAKER_CXX_EXPORT std::string bio();
102
112 FAKER_CXX_EXPORT std::string_view sex(std::optional<Language> language = std::nullopt);
113
123 FAKER_CXX_EXPORT std::string_view gender();
124
134 FAKER_CXX_EXPORT std::string jobTitle();
135
145 FAKER_CXX_EXPORT std::string_view jobDescriptor();
146
156 FAKER_CXX_EXPORT std::string_view jobArea();
157
167 FAKER_CXX_EXPORT std::string_view jobType();
168
178 FAKER_CXX_EXPORT std::string_view hobby();
179
189 FAKER_CXX_EXPORT std::string_view language();
190
200 FAKER_CXX_EXPORT std::string_view nationality();
201
214 FAKER_CXX_EXPORT std::string ssn(std::optional<SsnCountry> country = std::nullopt);
215
225 FAKER_CXX_EXPORT std::string_view westernZodiac();
226
236 FAKER_CXX_EXPORT std::string_view chineseZodiac();
237
247 FAKER_CXX_EXPORT std::string passport(std::optional<PassportCountry> country = std::nullopt);
248
250{
251 France,
252 Poland,
253 Romania,
254 Usa,
255};
256
257enum class Sex
258{
259 Female,
260 Male,
261};
262
263enum class SsnCountry
264{
265 England,
266 France,
267 Germany,
268 India,
269 Italy,
270 Poland,
271 Spain,
272 Usa,
273};
274
275enum class Language
276{
277 Albanian,
279 Croatian,
280 Czech,
281 Danish,
282 Dutch,
283 English,
284 Estonian,
285 Finnish,
286 French,
287 German,
288 Greek,
289 Hindi,
290 Hungarian,
291 Irish,
292 Italian,
293 Japanese,
294 Korean,
295 Latvian,
297 Mandarin,
298 Nepali,
299 Norwegian,
300 Polish,
302 Romanian,
303 Russian,
304 Serbian,
305 Slovak,
306 Slovene,
307 Spanish,
308 Swedish,
309 Turkish,
310 Ukrainian,
311};
312}
Definition Person.h:10
FAKER_CXX_EXPORT std::string_view lastName(std::optional< Country > country=std::nullopt, std::optional< Sex > sex=std::nullopt)
Returns a random last name.
FAKER_CXX_EXPORT std::string_view jobType()
Returns a random job type.
FAKER_CXX_EXPORT std::string fullName(std::optional< Country > country=std::nullopt, std::optional< Sex > sex=std::nullopt)
Returns a random full name.
FAKER_CXX_EXPORT std::string_view suffix(std::optional< Country > country=std::nullopt, std::optional< Sex > sex=std::nullopt)
Returns a random name suffix.
FAKER_CXX_EXPORT std::string_view jobDescriptor()
Returns a random job descriptor.
FAKER_CXX_EXPORT std::string bio()
Returns a random bio.
FAKER_CXX_EXPORT std::string_view chineseZodiac()
Returns a random Chinese Zodiac.
FAKER_CXX_EXPORT std::string_view prefix(std::optional< Country > country=std::nullopt, std::optional< Sex > sex=std::nullopt)
Returns a random name prefix.
FAKER_CXX_EXPORT std::string ssn(std::optional< SsnCountry > country=std::nullopt)
Returns a random SSN.
Language
Definition Person.h:276
FAKER_CXX_EXPORT std::string_view sex(std::optional< Language > language=std::nullopt)
Returns a sex.
FAKER_CXX_EXPORT std::string_view westernZodiac()
Returns a random Western Zodiac.
FAKER_CXX_EXPORT std::string_view language()
Returns a random language.
FAKER_CXX_EXPORT std::string_view firstName(std::optional< Country > country=std::nullopt, std::optional< Sex > sex=std::nullopt)
Returns a random first name.
FAKER_CXX_EXPORT std::string_view gender()
Returns a random gender.
FAKER_CXX_EXPORT std::string_view jobArea()
Returns a random job area.
FAKER_CXX_EXPORT std::string_view hobby()
Returns a random hobby.
Sex
Definition Person.h:258
PassportCountry
Definition Person.h:250
SsnCountry
Definition Person.h:264
FAKER_CXX_EXPORT std::string_view nationality()
Returns a random nationality.
FAKER_CXX_EXPORT std::string passport(std::optional< PassportCountry > country=std::nullopt)
Returns a random passport number from a given country.
FAKER_CXX_EXPORT std::string jobTitle()
Returns a random job title.