11 ZXing::BarcodeFormat zxFormat;
15static constexpr const format_map_t format_map[] = {
16 {ZXing::BarcodeFormat::None, Format::NoFormat},
17 {ZXing::BarcodeFormat::Aztec, Format::Aztec},
18 {ZXing::BarcodeFormat::Codabar, Format::Codabar},
19 {ZXing::BarcodeFormat::Code39, Format::Code39},
20 {ZXing::BarcodeFormat::Code93, Format::Code93},
21 {ZXing::BarcodeFormat::Code128, Format::Code128},
22 {ZXing::BarcodeFormat::DataBar, Format::DataBar},
23 {ZXing::BarcodeFormat::DataBarExpanded, Format::DataBarExpanded},
24 {ZXing::BarcodeFormat::DataMatrix, Format::DataMatrix},
25 {ZXing::BarcodeFormat::EAN8, Format::EAN8},
26 {ZXing::BarcodeFormat::EAN13, Format::EAN13},
27 {ZXing::BarcodeFormat::ITF, Format::ITF},
28 {ZXing::BarcodeFormat::MaxiCode, Format::MaxiCode},
29 {ZXing::BarcodeFormat::PDF417, Format::PDF417},
30 {ZXing::BarcodeFormat::QRCode, Format::QRCode},
31 {ZXing::BarcodeFormat::UPCA, Format::UPCA},
32 {ZXing::BarcodeFormat::UPCE, Format::UPCE},
37 ZXing::BarcodeFormats f;
38 for (
auto m : format_map) {
39 if (m.format & formats) {
48 const auto it = std::find_if(std::begin(format_map), std::end(format_map), [format](
auto m) {
49 return m.zxFormat == format;
52 return it != std::end(format_map) ? (*it).format : Format::NoFormat;
55#include "moc_format.cpp"
Provides classes and methods for generating barcodes.