BigBlueBox
An Inventory Management System for a NYLT Course or other Boy Scout Programs
|
#include <QrCode.h>
Classes | |
class | Ecc |
class | ReedSolomonGenerator |
Public Member Functions | |
QrCode (int ver, Ecc ecl, const std::vector< std::uint8_t > &dataCodewords, int mask) | |
int | getVersion () const |
int | getSize () const |
Ecc | getErrorCorrectionLevel () const |
int | getMask () const |
bool | getModule (int x, int y) const |
std::string | toSvgString (int border) const |
Static Public Member Functions | |
static QrCode | encodeText (const char *text, Ecc ecl) |
static QrCode | encodeBinary (const std::vector< std::uint8_t > &data, Ecc ecl) |
static QrCode | encodeSegments (const std::vector< QrSegment > &segs, Ecc ecl, int minVersion=1, int maxVersion=40, int mask=-1, bool boostEcl=true) |
Static Public Attributes | |
static constexpr int | MIN_VERSION = 1 |
static constexpr int | MAX_VERSION = 40 |
Private Member Functions | |
void | drawFunctionPatterns () |
void | drawFormatBits (int mask) |
void | drawVersion () |
void | drawFinderPattern (int x, int y) |
void | drawAlignmentPattern (int x, int y) |
void | setFunctionModule (int x, int y, bool isBlack) |
bool | module (int x, int y) const |
std::vector< std::uint8_t > | appendErrorCorrection (const std::vector< std::uint8_t > &data) const |
void | drawCodewords (const std::vector< std::uint8_t > &data) |
void | applyMask (int mask) |
int | handleConstructorMasking (int mask) |
long | getPenaltyScore () const |
Static Private Member Functions | |
static std::vector< int > | getAlignmentPatternPositions (int ver) |
static int | getNumRawDataModules (int ver) |
static int | getNumDataCodewords (int ver, Ecc ecl) |
Private Attributes | |
int | version |
int | size |
Ecc | errorCorrectionLevel |
int | mask |
std::vector< std::vector< bool > > | modules |
std::vector< std::vector< bool > > | isFunction |
Static Private Attributes | |
static const int | PENALTY_N1 = 3 |
static const int | PENALTY_N2 = 3 |
static const int | PENALTY_N3 = 40 |
static const int | PENALTY_N4 = 10 |
static const std::int8_t | ECC_CODEWORDS_PER_BLOCK [4][41] |
static const std::int8_t | NUM_ERROR_CORRECTION_BLOCKS [4][41] |
qrcodegen::QrCode::QrCode | ( | int | ver, |
Ecc | ecl, | ||
const std::vector< std::uint8_t > & | dataCodewords, | ||
int | mask | ||
) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |
|
staticprivate |
QrCode::Ecc qrcodegen::QrCode::getErrorCorrectionLevel | ( | ) | const |
int qrcodegen::QrCode::getMask | ( | ) | const |
bool qrcodegen::QrCode::getModule | ( | int | x, |
int | y | ||
) | const |
|
staticprivate |
|
staticprivate |
|
private |
int qrcodegen::QrCode::getSize | ( | ) | const |
int qrcodegen::QrCode::getVersion | ( | ) | const |
|
private |
|
private |
|
private |
std::string qrcodegen::QrCode::toSvgString | ( | int | border | ) | const |
|
staticprivate |
|
private |
|
private |
|
private |
|
static |
|
static |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
|
private |