|
dasmig-core 1.2.0
Shared random engine, distributions and data tiers for the dasmig generator libraries
|
A data file compiled into the program. More...
#include <resources.hpp>
Public Member Functions | |
| std::string | text () const |
| The whole content. | |
Public Attributes | |
| std::string_view | path |
Path below resources/, e.g. lite/biodata.tsv. | |
| std::span< const std::string_view > | chunks |
| The content, in order. | |
A data file compiled into the program.
Generated headers (scripts/embed.py) define arrays of these, so a build without a filesystem (WebAssembly) still has its data. The content is split into chunks because compilers limit the size of one string literal (MSVC: about 64 KB).
Definition at line 42 of file resources.hpp.
|
inline |
| std::span<const std::string_view> dasmig::core::embedded_file::chunks |
The content, in order.
Definition at line 45 of file resources.hpp.
| std::string_view dasmig::core::embedded_file::path |
Path below resources/, e.g. lite/biodata.tsv.
Definition at line 44 of file resources.hpp.