RAPP Platform API
 All Classes Namespaces Files Functions Variables Typedefs
rapp::object::qr_code Class Reference

#include <qr_code.hpp>

Public Member Functions

 qr_code (float centre_x, float centre_y, std::string label)
 Consruct using code coordinates (a rectangle) and a label (URL, email, string, etc) More...
 
 qr_code ()=default
 Allow Empty Consructor. More...
 
 qr_code (const qr_code &)=default
 Copy Conatructor. More...
 
std::string label () const
 Get the qr Label. More...
 
bool operator== (const qr_code &rhs) const
 

Private Attributes

float centre_x__ = -1
 
float centre_y__ = -1
 
std::string message__
 

Detailed Description

Definition at line 13 of file qr_code.hpp.

Constructor & Destructor Documentation

rapp::object::qr_code::qr_code ( float  centre_x,
float  centre_y,
std::string  label 
)

Consruct using code coordinates (a rectangle) and a label (URL, email, string, etc)

Parameters
centre_xis coordinate
centre_yis coordinate
labelis message embedded in QR

Definition at line 22 of file qr_code.hpp.

rapp::object::qr_code::qr_code ( )
default

Allow Empty Consructor.

rapp::object::qr_code::qr_code ( const qr_code )
default

Copy Conatructor.

Member Function Documentation

std::string rapp::object::qr_code::label ( ) const

Get the qr Label.

Definition at line 48 of file qr_code.hpp.

bool rapp::object::qr_code::operator== ( const qr_code rhs) const

Equality operator

Note
the message is case insensitvely compared

Definition at line 42 of file qr_code.hpp.

Member Data Documentation

float rapp::object::qr_code::centre_x__ = -1
private

Definition at line 54 of file qr_code.hpp.

float rapp::object::qr_code::centre_y__ = -1
private

Definition at line 55 of file qr_code.hpp.

std::string rapp::object::qr_code::message__
private

Definition at line 56 of file qr_code.hpp.


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