X-Git-Url: http://git.rot13.org/?p=zxing.git;a=blobdiff_plain;f=cpp%2Fcore%2Fsrc%2Fzxing%2Foned%2FUPCEReader.h;h=42a4fd0604d07c1f81c433bed372d694fe1d642b;hp=a26e2ec622c462603833da0c40a9b5447461859b;hb=ed5e46807ea0847057ff4d8c714b16938005a299;hpb=f60aaa3608812e2e19550c0ced1ce0f947dfedb0 diff --git a/cpp/core/src/zxing/oned/UPCEReader.h b/cpp/core/src/zxing/oned/UPCEReader.h index a26e2ec6..42a4fd06 100644 --- a/cpp/core/src/zxing/oned/UPCEReader.h +++ b/cpp/core/src/zxing/oned/UPCEReader.h @@ -1,8 +1,10 @@ +#ifndef __UPC_E_READER_H__ +#define __UPC_E_READER_H__ + /* * UPCEReader.h * ZXing * - * Created by Lukasz Warchol on 10-01-26. * Copyright 2010 ZXing authors All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -22,24 +24,24 @@ #include namespace zxing { - namespace oned { - class UPCEReader : public UPCEANReader { - - private: - int* decodeMiddleCounters; - static void determineFirstDigit(std::string& resultString, int lgPatternFound); //throws ReaderException - static void determineNumSysAndCheckDigit(std::string& resultString, int lgPatternFound); //throws ReaderException - protected: - int* decodeEnd(Ref row, int endStart); //throws ReaderException - bool checkChecksum(std::string s); //throws ReaderException - public: - UPCEReader(); - - int decodeMiddle(Ref row, int startRange[], int startRangeLen, std::string& resultString); //throws ReaderException - static std::string& convertUPCEtoUPCA(std::string upce); - - BarcodeFormat getBarcodeFormat(); - ~UPCEReader(); - }; - } -} \ No newline at end of file + namespace oned { + class UPCEReader : public UPCEANReader { + + private: + static bool determineNumSysAndCheckDigit(std::string& resultString, int lgPatternFound); + protected: + int* decodeEnd(Ref row, int endStart); + bool checkChecksum(std::string s); + public: + UPCEReader(); + + int decodeMiddle(Ref row, int startRange[], int startRangeLen, + std::string& resultString); + static std::string convertUPCEtoUPCA(std::string upce); + + BarcodeFormat getBarcodeFormat(); + }; + } +} + +#endif