|
zxing-cpp v3.0
|
#include <CreateBarcode.h>
Public Member Functions | |
| CreatorOptions (BarcodeFormat format, std::string options={}) | |
| ~CreatorOptions () | |
| CreatorOptions (CreatorOptions &&) noexcept | |
| CreatorOptions & | operator= (CreatorOptions &&) noexcept |
| zint_symbol * | zint () const |
| const BarcodeFormat & | format () const noexcept |
| CreatorOptions & | format (BarcodeFormat v) & |
| CreatorOptions && | format (BarcodeFormat v) && |
| const std::string & | options () const noexcept |
| CreatorOptions & | options (std::string v) & |
| CreatorOptions && | options (std::string v) && |
| std::optional< std::string > | ecLevel () const noexcept |
| std::optional< std::string > | eci () const noexcept |
| std::optional< bool > | gs1 () const noexcept |
| std::optional< bool > | readerInit () const noexcept |
| std::optional< bool > | forceSquare () const noexcept |
| std::optional< int > | columns () const noexcept |
| std::optional< int > | rows () const noexcept |
| std::optional< int > | version () const noexcept |
| std::optional< int > | dataMask () const noexcept |
Friends | |
| Barcode | CreateBarcode (const void *data, int size, int mode, const CreatorOptions &options) |
Configuration options for barcode creation.
This class encapsulates all the parameters needed to create a barcode with specific format and settings.
The options property is a string that can contain multiple key-value pairs separated by commas. Each key-value pair configures a specific aspect of the barcode generation process and are dependent on the used BarcodeFormat. Boolean properties are interpreted as true if only the property name is present. Keys are case-insensitive. Passing a serialized JSON object is also supported.
For a list of all supported options, see the list of read-only properties below.
| ZXing::CreatorOptions::CreatorOptions | ( | BarcodeFormat | format, |
| std::string | options = {} ) |
| ZXing::CreatorOptions::~CreatorOptions | ( | ) |
|
noexcept |
|
noexcept |
| zint_symbol * ZXing::CreatorOptions::zint | ( | ) | const |
|
noexcept |
| CreatorOptions & ZXing::CreatorOptions::format | ( | BarcodeFormat | v | ) | & |
| CreatorOptions && ZXing::CreatorOptions::format | ( | BarcodeFormat | v | ) | && |
|
noexcept |
| CreatorOptions & ZXing::CreatorOptions::options | ( | std::string | v | ) | & |
| CreatorOptions && ZXing::CreatorOptions::options | ( | std::string | v | ) | && |
|
noexcept |
most 2D symbologies: ecLevel, e.g. "30%", see also libzint docs for supported values per symbology
|
noexcept |
most 2D symbologies: specify ECI designator to use (e.g. "UTF-8" or "26" for UTF-8), see also libzint docs
|
noexcept |
GS1 mode.
|
noexcept |
most 2D symbologies: set the "reader init" flag
|
noexcept |
DataMatrix: only consider square symbol versions.
|
noexcept |
specify number of columns (e.g. for DataBarExpStk, PDF417)
|
noexcept |
specify number of rows (e.g. for DataBarExpStk, PDF417)
|
noexcept |
most 2D symbologies: specify the version/size of the symbol
|
noexcept |
QRCode/MicroQRCode: specify dataMask to use.
|
friend |