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