X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=cpp%2Fcore%2Fsrc%2Fzxing%2Foned%2FEAN13Reader.h;h=4ba4e0b71a2074f743e98b4da51c09e7b03c9e59;hb=HEAD;hp=8ef6fe38b8cd397b1d6192a5444921819bdf74a6;hpb=f60aaa3608812e2e19550c0ced1ce0f947dfedb0;p=zxing.git diff --git a/cpp/core/src/zxing/oned/EAN13Reader.h b/cpp/core/src/zxing/oned/EAN13Reader.h index 8ef6fe38..4ba4e0b7 100644 --- a/cpp/core/src/zxing/oned/EAN13Reader.h +++ b/cpp/core/src/zxing/oned/EAN13Reader.h @@ -1,8 +1,10 @@ +#ifndef __EAN_13_READER_H__ +#define __EAN_13_READER_H__ + /* * EAN13Reader.h * ZXing * - * Created by Lukasz Warchol on 10-01-22. * Copyright 2010 ZXing authors All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -22,20 +24,21 @@ #include namespace zxing { - namespace oned { - class EAN13Reader : public UPCEANReader { - - private: - int* decodeMiddleCounters; - static void determineFirstDigit(std::string& resultString, int lgPatternFound); //throws ReaderException - - public: - EAN13Reader(); - - int decodeMiddle(Ref row, int startRange[], int startRangeLen, std::string& resultString); //throws ReaderException - - BarcodeFormat getBarcodeFormat(); - ~EAN13Reader(); - }; - } -} \ No newline at end of file + namespace oned { + class EAN13Reader : public UPCEANReader { + + private: + static bool determineFirstDigit(std::string& resultString, int lgPatternFound); + + public: + EAN13Reader(); + + int decodeMiddle(Ref row, int startGuardBegin, int startGuardEnd, + std::string& resultString); + + BarcodeFormat getBarcodeFormat(); + }; + } +} + +#endif