Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

BlockPair.h Example File

appdemos/qtws/QZXing/zxing/zxing/qrcode/encoder/BlockPair.h
 #ifndef BLOCKPAIR_H
 #define BLOCKPAIR_H

 #include <vector>
 #include <zxing/common/Array.h>

 using namespace std;

 namespace zxing {
 namespace qrcode {

 class BlockPair
 {
 private:
     ArrayRef<byte> data_;
     ArrayRef<byte> errorCorrection_;

 public:
     BlockPair(ArrayRef<byte> data, ArrayRef<byte> errorCorrection) :
       data_(data), errorCorrection_(errorCorrection)  {}

     BlockPair(const BlockPair& other) : data_(other.data_), errorCorrection_(other.errorCorrection_) {}

     ArrayRef<byte> getDataBytes() { return data_; }

     ArrayRef<byte> getErrorCorrectionBytes() { return errorCorrection_; }
 };

 }
 }

 #endif //BLOCKPAIR_H
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded