QREncodeResult.h 752 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright 2016 Huy Cuong Nguyen
  3. * Copyright 2016 ZXing authors
  4. */
  5. // SPDX-License-Identifier: Apache-2.0
  6. #pragma once
  7. #include "BitMatrix.h"
  8. #include "ByteArray.h"
  9. #include "QRCodecMode.h"
  10. #include "QRVersion.h"
  11. namespace ZXing::QRCode {
  12. /**
  13. * @author satorux@google.com (Satoru Takabayashi) - creator
  14. * @author dswitkin@google.com (Daniel Switkin) - ported from C++
  15. *
  16. * Original class name in Java was QRCode, as this name is taken already for the namespace,
  17. * so it's renamed here EncodeResult.
  18. */
  19. class EncodeResult
  20. {
  21. public:
  22. ErrorCorrectionLevel ecLevel = ErrorCorrectionLevel::Invalid;
  23. CodecMode mode = CodecMode::TERMINATOR;
  24. const Version* version = nullptr;
  25. int maskPattern = -1;
  26. BitMatrix matrix;
  27. };
  28. } // namespace ZXing::QRCode