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

#include <qrcode_gen.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]

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

◆ QrSegment() [2/2]

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

Member Function Documentation

◆ getData()

const std::vector< bool > & Esterv::Utils::QrGen::QrSegment::getData ( ) const

◆ getMode()

const QrSegment::Mode & Esterv::Utils::QrGen::QrSegment::getMode ( ) const

◆ getNumChars()

int Esterv::Utils::QrGen::QrSegment::getNumChars ( ) const

◆ getTotalBits()

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

◆ isAlphanumeric()

bool Esterv::Utils::QrGen::QrSegment::isAlphanumeric ( const char *  text)
static

◆ isNumeric()

bool Esterv::Utils::QrGen::QrSegment::isNumeric ( const char *  text)
static

◆ makeAlphanumeric()

QrSegment Esterv::Utils::QrGen::QrSegment::makeAlphanumeric ( const char *  text)
static

◆ makeBytes()

QrSegment Esterv::Utils::QrGen::QrSegment::makeBytes ( const std::vector< std::uint8_t > &  data)
static

◆ makeEci()

QrSegment Esterv::Utils::QrGen::QrSegment::makeEci ( long  assignVal)
static

◆ makeNumeric()

QrSegment Esterv::Utils::QrGen::QrSegment::makeNumeric ( const char *  digits)
static

◆ makeSegments()

vector< QrSegment > Esterv::Utils::QrGen::QrSegment::makeSegments ( const char *  text)
static

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