1 // Copyright 2014 The PDFium Authors 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_QRCODERERRORCORRECTIONLEVEL_H_ 8 #define FXBARCODE_QRCODE_BC_QRCODERERRORCORRECTIONLEVEL_H_ 9 10 #include <stdint.h> 11 12 class CBC_QRCoderErrorCorrectionLevel { 13 public: 14 static CBC_QRCoderErrorCorrectionLevel* L; 15 static CBC_QRCoderErrorCorrectionLevel* M; 16 static CBC_QRCoderErrorCorrectionLevel* Q; 17 static CBC_QRCoderErrorCorrectionLevel* H; 18 19 static void Initialize(); 20 static void Finalize(); 21 22 ~CBC_QRCoderErrorCorrectionLevel(); 23 Ordinal()24 int32_t Ordinal() const { return m_ordinal; } GetBits()25 int32_t GetBits() const { return m_bits; } 26 27 private: 28 CBC_QRCoderErrorCorrectionLevel(int32_t ordinal, int32_t bits); 29 30 int32_t m_ordinal; 31 int32_t m_bits; 32 }; 33 34 #endif // FXBARCODE_QRCODE_BC_QRCODERERRORCORRECTIONLEVEL_H_ 35