-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQR.h
More file actions
34 lines (29 loc) · 658 Bytes
/
QR.h
File metadata and controls
34 lines (29 loc) · 658 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef QR_H
#define QR_H
#include <SFML/Graphics.hpp>
#include <functional>
#include <iostream>
#include "Encoder.h"
#include "EC.h"
#include "Module.h"
#include "MaskInfo.h"
#include "Printer.h"
class QR final
{
public:
QR();
sf::Image create(const std::string& str, bool filegiven, Err_Level);
int getVersion();
void reset(); // Resets all data
void print() const;
private:
Encoder encoder;
EC errorCoder;
MaskInfo maskinfo;
Printer printer;
std::vector<bool> dataFinal; // full Data-String
std::vector<std::vector<QR_Module>> qr_field;
qrInfo info; // Version, Encoding, Size, EC-Level, Mask_number
sf::Image qrCode;
};
#endif // QR_H