AztecReader.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
  2. /*
  3. * AztecReader.h
  4. * zxing
  5. *
  6. * Created by Lukas Stabe on 08/02/2012.
  7. * Copyright 2012 ZXing authors All rights reserved.
  8. *
  9. * Licensed under the Apache License, Version 2.0 (the "License");
  10. * you may not use this file except in compliance with the License.
  11. * You may obtain a copy of the License at
  12. *
  13. * http://www.apache.org/licenses/LICENSE-2.0
  14. *
  15. * Unless required by applicable law or agreed to in writing, software
  16. * distributed under the License is distributed on an "AS IS" BASIS,
  17. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. * See the License for the specific language governing permissions and
  19. * limitations under the License.
  20. */
  21. #include <zxing/Reader.h>
  22. #include <zxing/aztec/decoder/Decoder.h>
  23. #include <zxing/DecodeHints.h>
  24. #ifndef ZXingWidget_AztecReader_h
  25. #define ZXingWidget_AztecReader_h
  26. namespace zxing {
  27. namespace aztec {
  28. class AztecReader : public Reader {
  29. private:
  30. Decoder decoder_;
  31. protected:
  32. Decoder &getDecoder();
  33. public:
  34. AztecReader();
  35. virtual Ref<Result> decode(Ref<BinaryBitmap> image);
  36. virtual Ref<Result> decode(Ref<BinaryBitmap> image, DecodeHints hints);
  37. virtual ~AztecReader();
  38. };
  39. }
  40. }
  41. #endif