summaryrefslogtreecommitdiff
path: root/xfa/fxbarcode/pdf417/BC_PDF417BarcodeValue.h
blob: 0be71a1fb2ea0927fc31bff7c4decc557a7f3596 (plain)
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
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#ifndef XFA_FXBARCODE_PDF417_BC_PDF417BARCODEVALUE_H_
#define XFA_FXBARCODE_PDF417_BC_PDF417BARCODEVALUE_H_

#include "core/fxcrt/include/fx_basic.h"

class CBC_BarcodeValue final {
 public:
  CBC_BarcodeValue();
  ~CBC_BarcodeValue();

  void setValue(int32_t value);
  CFX_Int32Array* getValue();
  int32_t getConfidence(int32_t value);

 private:
  CFX_Int32Array m_keys;
  CFX_Int32Array m_values;
};

using CBC_BarcodeValueArray = CFX_ArrayTemplate<CBC_BarcodeValue*>;
using CBC_BarcodeValueArrayArray = CFX_ArrayTemplate<CBC_BarcodeValueArray*>;

#endif  // XFA_FXBARCODE_PDF417_BC_PDF417BARCODEVALUE_H_