|
Device Generator 1.0.3
Devices, browsers, user agents and IP addresses that fit together for C++23
|
Device Generator library — devices, browsers, user agents and IP addresses that fit together for C++23. More...
#include "core.hpp"#include <algorithm>#include <array>#include <bit>#include <chrono>#include <cmath>#include <cstddef>#include <cstdint>#include <filesystem>#include <initializer_list>#include <format>#include <limits>#include <map>#include <numbers>#include <optional>#include <ranges>#include <ostream>#include <span>#include <stdexcept>#include <string>#include <string_view>#include <system_error>#include <utility>#include <vector>Go to the source code of this file.
Classes | |
| struct | dasmig::device_request |
| What a device call asks for. More... | |
| struct | dasmig::device_screen |
| A screen in CSS pixels. More... | |
| class | dasmig::device |
| Return type for device generation. More... | |
| class | dasmig::dvg |
| Device Generator: devices whose model, OS, browser, user agent, screen and IP address fit together at a date. More... | |
Enumerations | |
| enum class | dasmig::device_kind : std::uint8_t { phone , tablet , desktop , other } |
| The form of a device. More... | |
| enum class | dasmig::ip_version : std::uint8_t { any , v4 , v6 } |
| Which IP family a device gets. More... | |
| enum class | dasmig::device_table : std::uint8_t { countries , platforms , platform_shares , maker_shares , models , releases , adoption , version_shares , requirements , bundled , browser_shares , ua_templates , screens , ipv4 , ipv6 , reserved } |
| The data tables of device-generator. Each is a TSV file in a tier directory and can be extended with layers. More... | |
Device Generator library — devices, browsers, user agents and IP addresses that fit together for C++23.
Definition in file devicegen.hpp.
|
strong |
The form of a device.
| Enumerator | |
|---|---|
| phone | A phone. |
| tablet | A tablet. |
| desktop | A desktop or laptop computer. |
| other | Anything else (no browser is modelled for it). |
Definition at line 47 of file devicegen.hpp.
|
strong |
The data tables of device-generator. Each is a TSV file in a tier directory and can be extended with layers.
Definition at line 271 of file devicegen.hpp.
|
strong |
Which IP family a device gets.
| Enumerator | |
|---|---|
| any | IPv6 with the country's IPv6 share, otherwise IPv4. |
| v4 | Always IPv4. |
| v6 | IPv6 where the country has prefixes, otherwise IPv4. |
Definition at line 56 of file devicegen.hpp.