Initialisation options for the gs1encoders::GS1Encoder constructor.
More...
#include <gs1encoders.hpp>
Initialisation options for the gs1encoders::GS1Encoder constructor.
Populated via the chained setters, then passed to the gs1encoders::GS1Encoder constructor. New setters may be added in future versions without breaking existing code.
◆ fallback_on_syndict_error()
| InitOpts & gs1encoders::InitOpts::fallback_on_syndict_error |
( |
bool |
enabled | ) |
|
|
inline |
Fall back to the embedded AI table if the Syntax Dictionary cannot be loaded. When enabled, the underlying load error is exposed via gs1encoders::GS1Encoder::init_fallback_warning() on successful construction.
- Parameters
-
| enabled | whether to enable fallback. |
- Returns
- reference to this InitOpts, for chaining.
◆ no_embedded()
| InitOpts & gs1encoders::InitOpts::no_embedded |
( |
bool |
enabled | ) |
|
|
inline |
Refuse to use the embedded AI table. Initialisation fails if no other AI table can be loaded.
- Parameters
-
| enabled | whether to disable the embedded AI table. |
- Returns
- reference to this InitOpts, for chaining.
◆ syntax_dictionary()
| InitOpts & gs1encoders::InitOpts::syntax_dictionary |
( |
std::string |
path | ) |
|
|
inline |
Set the path to a GS1 Syntax Dictionary file. If not set, the embedded AI table is used.
- Parameters
-
| path | path to the Syntax Dictionary file. |
- Returns
- reference to this InitOpts, for chaining.
The documentation for this struct was generated from the following file: