VGamepad PC
The PC app for the virtual game controller.
Loading...
Searching...
No Matches
qrcodegen::QrSegment Class Referencefinal

#include <qrcodegen.hpp>

Collaboration diagram for qrcodegen::QrSegment:
[legend]

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)

Private Attributes

const Modemode
int numChars
std::vector< bool > data

Static Private Attributes

static const char * ALPHANUMERIC_CHARSET

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()

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

◆ isAlphanumeric()

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

◆ isNumeric()

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

◆ makeAlphanumeric()

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

◆ makeBytes()

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

◆ makeEci()

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

◆ makeNumeric()

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

◆ makeSegments()

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

Member Data Documentation

◆ ALPHANUMERIC_CHARSET

const char* qrcodegen::QrSegment::ALPHANUMERIC_CHARSET
staticprivate

◆ data

std::vector<bool> qrcodegen::QrSegment::data
private

◆ mode

const Mode* qrcodegen::QrSegment::mode
private

◆ numChars

int qrcodegen::QrSegment::numChars
private

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