RAPP Platform API
 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:
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
bool operator==(const qr_code &rhs) const
Definition: qr_code.hpp:42
qr_code()=default
Allow Empty Consructor.
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
std::string label() const
Get the qr Label.
Definition: qr_code.hpp:48
std::string message__
Definition: qr_code.hpp:56