blob: 9d571f34107e8463da36d25b2c24947b11dc57e1 [file] [log] [blame]
Philip P. Moltmannd904c1e2018-03-19 09:26:45 -07001// Copyright 2014 PDFium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef FXBARCODE_QRCODE_BC_QRCODERBLOCKPAIR_H_
8#define FXBARCODE_QRCODE_BC_QRCODERBLOCKPAIR_H_
9
10#include <memory>
11
12class CBC_CommonByteArray;
13
14class CBC_QRCoderBlockPair {
15 public:
16 CBC_QRCoderBlockPair();
17 ~CBC_QRCoderBlockPair();
18
19 const CBC_CommonByteArray* GetDataBytes() const;
20 const CBC_CommonByteArray* GetErrorCorrectionBytes() const;
21 void SetData(std::unique_ptr<CBC_CommonByteArray> data,
22 std::unique_ptr<CBC_CommonByteArray> errorCorrection);
23
24 private:
25 std::unique_ptr<CBC_CommonByteArray> m_dataBytes;
26 std::unique_ptr<CBC_CommonByteArray> m_errorCorrectionBytes;
27};
28
29#endif // FXBARCODE_QRCODE_BC_QRCODERBLOCKPAIR_H_