RAPP Platform API
Main Page
Packages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
qr_code.hpp
Go to the documentation of this file.
1
#ifndef RAPP_OBJECT_QRCODE
2
#define RAPP_OBJECT_QRCODE
3
#include "
includes.ihh
"
4
namespace
rapp {
5
namespace
object {
13
class
qr_code
14
{
15
public
:
22
qr_code
(
23
float
centre_x,
24
float
centre_y,
25
std::string
label
26
)
27
:
centre_x__
(centre_x),
28
centre_y__
(centre_y),
29
message__
(label)
30
{}
31
33
qr_code
() =
default
;
34
36
qr_code
(
const
qr_code
&) =
default
;
37
42
bool
operator==
(
const
qr_code
& rhs)
const
43
{
44
return
boost::iequals(this->
message__
, rhs.
message__
);
45
}
46
48
std::string
label
()
const
49
{
50
return
message__
;
51
}
52
53
private
:
54
float
centre_x__
= -1;
55
float
centre_y__
= -1;
56
std::string
message__
;
57
};
58
}
59
}
60
#endif
includes.ihh
rapp::object::qr_code::operator==
bool operator==(const qr_code &rhs) const
Definition:
qr_code.hpp:42
rapp::object::qr_code::centre_x__
float centre_x__
Definition:
qr_code.hpp:54
rapp::object::qr_code::qr_code
qr_code()=default
Allow Empty Consructor.
rapp::object::qr_code::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) ...
Definition:
qr_code.hpp:22
rapp::object::qr_code::label
std::string label() const
Get the qr Label.
Definition:
qr_code.hpp:48
rapp::object::qr_code::message__
std::string message__
Definition:
qr_code.hpp:56
rapp::object::qr_code::centre_y__
float centre_y__
Definition:
qr_code.hpp:55
rapp::object::qr_code
Definition:
qr_code.hpp:13
cpp
includes
objects
qr_code
qr_code.hpp
Generated on Fri Jul 29 2016 18:45:01 for RAPP Platform API by
1.8.6