OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FXBARCODE_ONED_BC_ONEDCODE128WRITER_H_ | 7 #ifndef XFA_FXBARCODE_ONED_BC_ONEDCODE128WRITER_H_ |
8 #define XFA_FXBARCODE_ONED_BC_ONEDCODE128WRITER_H_ | 8 #define XFA_FXBARCODE_ONED_BC_ONEDCODE128WRITER_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_string.h" | 10 #include "core/fxcrt/fx_string.h" |
11 #include "core/fxcrt/include/fx_system.h" | 11 #include "core/fxcrt/fx_system.h" |
12 #include "xfa/fxbarcode/oned/BC_OneDimWriter.h" | 12 #include "xfa/fxbarcode/oned/BC_OneDimWriter.h" |
13 | 13 |
14 class CBC_OnedCode128Writer : public CBC_OneDimWriter { | 14 class CBC_OnedCode128Writer : public CBC_OneDimWriter { |
15 public: | 15 public: |
16 CBC_OnedCode128Writer(); | 16 CBC_OnedCode128Writer(); |
17 explicit CBC_OnedCode128Writer(BC_TYPE type); | 17 explicit CBC_OnedCode128Writer(BC_TYPE type); |
18 ~CBC_OnedCode128Writer() override; | 18 ~CBC_OnedCode128Writer() override; |
19 | 19 |
20 // CBC_OneDimWriter | 20 // CBC_OneDimWriter |
21 uint8_t* Encode(const CFX_ByteString& contents, | 21 uint8_t* Encode(const CFX_ByteString& contents, |
(...skipping 24 matching lines...) Expand all Loading... |
46 int32_t length); | 46 int32_t length); |
47 int32_t Encode128B(const CFX_ByteString& contents, | 47 int32_t Encode128B(const CFX_ByteString& contents, |
48 CFX_ArrayTemplate<const int32_t*>* patterns); | 48 CFX_ArrayTemplate<const int32_t*>* patterns); |
49 int32_t Encode128C(const CFX_ByteString& contents, | 49 int32_t Encode128C(const CFX_ByteString& contents, |
50 CFX_ArrayTemplate<const int32_t*>* patterns); | 50 CFX_ArrayTemplate<const int32_t*>* patterns); |
51 | 51 |
52 BC_TYPE m_codeFormat; | 52 BC_TYPE m_codeFormat; |
53 }; | 53 }; |
54 | 54 |
55 #endif // XFA_FXBARCODE_ONED_BC_ONEDCODE128WRITER_H_ | 55 #endif // XFA_FXBARCODE_ONED_BC_ONEDCODE128WRITER_H_ |
OLD | NEW |