MidlePayQml 0.0.4
MiddlePay QML module
Classes | Public Member Functions | Static Public Member Functions | List of all members
qrcodegen::QrSegment Class Referencefinal

#include <qrcodegen.hpp>

Classes

class  Mode
 

Public Member Functions

 QrSegment (const Mode &md, int numCh, const std::vector< bool > &dt)
 
 QrSegment (const Mode &md, int numCh, std::vector< bool > &&dt)
 
const ModegetMode () const
 
int getNumChars () const
 
const std::vector< bool > & getData () const
 

Static Public Member Functions

static QrSegment makeBytes (const std::vector< std::uint8_t > &data)
 
static QrSegment makeNumeric (const char *digits)
 
static QrSegment makeAlphanumeric (const char *text)
 
static std::vector< QrSegmentmakeSegments (const char *text)
 
static QrSegment makeEci (long assignVal)
 
static bool isNumeric (const char *text)
 
static bool isAlphanumeric (const char *text)
 
static int getTotalBits (const std::vector< QrSegment > &segs, int version)
 

Constructor & Destructor Documentation

◆ QrSegment() [1/2]

qrcodegen::QrSegment::QrSegment ( const Mode md,
int  numCh,
const std::vector< bool > &  dt 
)

◆ QrSegment() [2/2]

qrcodegen::QrSegment::QrSegment ( const Mode md,
int  numCh,
std::vector< bool > &&  dt 
)

Member Function Documentation

◆ getData()

const std::vector<bool>& qrcodegen::QrSegment::getData ( ) const

◆ getMode()

const Mode& qrcodegen::QrSegment::getMode ( ) const

◆ getNumChars()

int qrcodegen::QrSegment::getNumChars ( ) const

◆ getTotalBits()

static int qrcodegen::QrSegment::getTotalBits ( const std::vector< QrSegment > &  segs,
int  version 
)
static

◆ isAlphanumeric()

static bool qrcodegen::QrSegment::isAlphanumeric ( const char *  text)
static

◆ isNumeric()

static bool qrcodegen::QrSegment::isNumeric ( const char *  text)
static

◆ makeAlphanumeric()

static QrSegment qrcodegen::QrSegment::makeAlphanumeric ( const char *  text)
static

◆ makeBytes()

static QrSegment qrcodegen::QrSegment::makeBytes ( const std::vector< std::uint8_t > &  data)
static

◆ makeEci()

static QrSegment qrcodegen::QrSegment::makeEci ( long  assignVal)
static

◆ makeNumeric()

static QrSegment qrcodegen::QrSegment::makeNumeric ( const char *  digits)
static

◆ makeSegments()

static std::vector<QrSegment> qrcodegen::QrSegment::makeSegments ( const char *  text)
static

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