EstervQrCode 1.1.1
Library for qr code manipulation
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Esterv::Utils::QrGen::QrCode Class Referencefinal

#include <qrcode_gen.hpp>

Public Types

enum class  Ecc { LOW = 0 , MEDIUM , QUARTILE , HIGH }
 

Public Member Functions

 QrCode (int ver, Ecc ecl, const std::vector< std::uint8_t > &dataCodewords, int msk)
 
int getVersion () const
 
int getSize () const
 
Ecc getErrorCorrectionLevel () const
 
int getMask () const
 
bool getModule (int x, int y) 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
 

Member Enumeration Documentation

◆ Ecc

Enumerator
LOW 
MEDIUM 
QUARTILE 
HIGH 

Constructor & Destructor Documentation

◆ QrCode()

Esterv::Utils::QrGen::QrCode::QrCode ( int  ver,
Ecc  ecl,
const std::vector< std::uint8_t > &  dataCodewords,
int  msk 
)

Member Function Documentation

◆ encodeBinary()

QrCode Esterv::Utils::QrGen::QrCode::encodeBinary ( const std::vector< std::uint8_t > &  data,
Ecc  ecl 
)
static

◆ encodeSegments()

QrCode Esterv::Utils::QrGen::QrCode::encodeSegments ( const std::vector< QrSegment > &  segs,
Ecc  ecl,
int  minVersion = 1,
int  maxVersion = 40,
int  mask = -1,
bool  boostEcl = true 
)
static

◆ encodeText()

QrCode Esterv::Utils::QrGen::QrCode::encodeText ( const char *  text,
Ecc  ecl 
)
static

◆ getErrorCorrectionLevel()

QrCode::Ecc Esterv::Utils::QrGen::QrCode::getErrorCorrectionLevel ( ) const

◆ getMask()

int Esterv::Utils::QrGen::QrCode::getMask ( ) const

◆ getModule()

bool Esterv::Utils::QrGen::QrCode::getModule ( int  x,
int  y 
) const

◆ getSize()

int Esterv::Utils::QrGen::QrCode::getSize ( ) const

◆ getVersion()

int Esterv::Utils::QrGen::QrCode::getVersion ( ) const

Member Data Documentation

◆ MAX_VERSION

constexpr int Esterv::Utils::QrGen::QrCode::MAX_VERSION = 40
staticconstexpr

◆ MIN_VERSION

constexpr int Esterv::Utils::QrGen::QrCode::MIN_VERSION = 1
staticconstexpr

The documentation for this class was generated from the following files: