1 // 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_DATAMATRIX_BC_X12ENCODER_H_
8 #define FXBARCODE_DATAMATRIX_BC_X12ENCODER_H_
9 
10 #include "fxbarcode/datamatrix/BC_C40Encoder.h"
11 
12 class CBC_X12Encoder final : public CBC_C40Encoder {
13  public:
14   CBC_X12Encoder();
15   ~CBC_X12Encoder() override;
16 
17   // CBC_C40Encoder
18   CBC_HighLevelEncoder::Encoding GetEncodingMode() override;
19   bool Encode(CBC_EncoderContext* context) override;
20   bool HandleEOD(CBC_EncoderContext* context, WideString* buffer) override;
21   int32_t EncodeChar(wchar_t c, WideString* sb) override;
22 };
23 
24 #endif  // FXBARCODE_DATAMATRIX_BC_X12ENCODER_H_
25