dasmig-core 1.2.0
Shared random engine, distributions and data tiers for the dasmig generator libraries
Loading...
Searching...
No Matches
dataset.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) 2020-2026 Diego Dasso Migotto
3
4#ifndef DASMIG_CORE_DATASET_HPP
5#define DASMIG_CORE_DATASET_HPP
6
7#include <cstdint>
8
9/// @file dataset.hpp
10/// @brief The data tier enum shared by every generator library.
11/// @author Diego Dasso Migotto (diegomigotto at hotmail dot com)
12
13// Libraries released before the core define their own copy of the enum behind
14// this guard; defining it here makes them skip it when included together.
15#ifndef DASMIG_DATASET_DEFINED
16#define DASMIG_DATASET_DEFINED
17
18namespace dasmig
19{
20
21/// @brief Which tier of a library's bundled data to load.
22enum class dataset : std::uint8_t
23{
24 lite, ///< Smaller tier: the best-covered entries, suitable for embedding.
25 full ///< Complete tier.
26};
27
28} // namespace dasmig
29
30#endif // DASMIG_DATASET_DEFINED
31
32#endif // DASMIG_CORE_DATASET_HPP
dataset
Which tier of a library's bundled data to load.
Definition dataset.hpp:23
@ full
Complete tier.
@ lite
Smaller tier: the best-covered entries, suitable for embedding.