SWE-350 TOTP Generator Milestone 5
The DE-10 board has six 7-segment displays, this can be used to display and generate a time based one-time pin (TOTP).
Loading...
Searching...
No Matches
QrCode Class Reference

#include <QrCode.hpp>

Collaboration diagram for QrCode:

Data Structures

class  Ecc
 

Public Member Functions

 QrCode (int ver, const Ecc &ecl, const std::vector< uint8_t > &dataCodewords, int mask)
 
 QrCode (const QrCode &qr, int mask)
 
int getMask () const
 
int getModule (int x, int y) const
 
std::string toSvgString (int border) const
 

Static Public Member Functions

static QrCode encodeText (const char *text, int version, const Ecc &ecl)
 
static QrCode encodeBinary (const std::vector< uint8_t > &data, const Ecc &ecl)
 
static QrCode encodeSegments (const std::vector< QrSegment > &segs, const Ecc &ecl, int minVersion=1, int maxVersion=40, int mask=-1, bool boostEcl=true)
 

Data Fields

const int version
 
const int size
 
const EccerrorCorrectionLevel
 

Detailed Description

Definition at line 41 of file QrCode.hpp.

Constructor & Destructor Documentation

◆ QrCode() [1/2]

QrCode ( int ver,
const Ecc & ecl,
const std::vector< uint8_t > & dataCodewords,
int mask )

Definition at line 109 of file QrCode.cpp.

◆ QrCode() [2/2]

QrCode ( const QrCode & qr,
int mask )

Definition at line 133 of file QrCode.cpp.

Member Function Documentation

◆ encodeBinary()

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

Definition at line 51 of file QrCode.cpp.

Here is the call graph for this function:

◆ encodeSegments()

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

Definition at line 58 of file QrCode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ encodeText()

qrcodegen::QrCode encodeText ( const char * text,
int version,
const Ecc & ecl )
static

Definition at line 45 of file QrCode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMask()

int getMask ( ) const

Definition at line 153 of file QrCode.cpp.

◆ getModule()

int getModule ( int x,
int y ) const

Definition at line 158 of file QrCode.cpp.

◆ toSvgString()

std::string toSvgString ( int border) const

Definition at line 166 of file QrCode.cpp.

Field Documentation

◆ errorCorrectionLevel

const Ecc& errorCorrectionLevel

Definition at line 112 of file QrCode.hpp.

◆ size

const int size

Definition at line 109 of file QrCode.hpp.

◆ version

const int version

Definition at line 105 of file QrCode.hpp.


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