Faker C++
Loading...
Searching...
No Matches
image.h
Go to the documentation of this file.
1#pragma once
2
3#include <optional>
4#include <string>
5#include <string_view>
6
7#include "faker-cxx/export.h"
8
9namespace faker::image
10{
11enum class ImageCategory
12{
13 Animals,
14 Business,
15 Cats,
16 City,
17 Food,
18 Nightlife,
19 Fashion,
20 People,
21 Nature,
22 Sports,
23 Technics,
24 Transport
25};
26
42FAKER_CXX_EXPORT std::string imageUrl(unsigned width = 640, unsigned height = 480,
43 std::optional<ImageCategory> category = std::nullopt);
44
54FAKER_CXX_EXPORT std::string githubAvatarUrl();
55
65FAKER_CXX_EXPORT std::string dimensions();
66
75FAKER_CXX_EXPORT std::string_view type();
76}
FAKER_CXX_EXPORT std::string_view type(Locale locale=Locale::en_US)
Returns a random type of animal.