AztecDetectorResult.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
  2. /*
  3. * AtztecDetecorResult.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/common/DetectorResult.h>
  22. #ifndef ZXingWidget_AtztecDetecorResult_h
  23. #define ZXingWidget_AtztecDetecorResult_h
  24. namespace zxing {
  25. namespace aztec {
  26. class AztecDetectorResult : public DetectorResult {
  27. private:
  28. bool compact_;
  29. int nbDatablocks_, nbLayers_;
  30. public:
  31. AztecDetectorResult(Ref<BitMatrix> bits,
  32. ArrayRef< Ref<ResultPoint> > points,
  33. bool compact,
  34. int nbDatablocks,
  35. int nbLayers);
  36. bool isCompact();
  37. int getNBDatablocks();
  38. int getNBLayers();
  39. };
  40. }
  41. }
  42. #endif