X-Git-Url: http://git.rot13.org/?p=zxing.git;a=blobdiff_plain;f=cpp%2Fcore%2Fsrc%2Fzxing%2Foned%2FUPCEReader.h;h=42a4fd0604d07c1f81c433bed372d694fe1d642b;hp=2a9e89a087921d54a69abf23c4b59b766a95bb3b;hb=ed5e46807ea0847057ff4d8c714b16938005a299;hpb=24278b097c9c874c4b2758f1eac2e41a975c8d98 diff --git a/cpp/core/src/zxing/oned/UPCEReader.h b/cpp/core/src/zxing/oned/UPCEReader.h index 2a9e89a0..42a4fd06 100644 --- a/cpp/core/src/zxing/oned/UPCEReader.h +++ b/cpp/core/src/zxing/oned/UPCEReader.h @@ -24,24 +24,24 @@ #include namespace zxing { - namespace oned { - class UPCEReader : public UPCEANReader { - - private: - 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(); - }; - } + 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