<NME> BarcodeReader.h
<BEF> /*
* Copyright 2016 Nu-book Inc.
*/
// SPDX-License-Identifier: Apache-2.0

#pragma once

#include "BarcodeFormat.h"

#include <memory>

namespace ZXing {

public enum class BarcodeType : int {
	AZTEC,
	CODABAR,
	CODE_39,
	CODE_93,
	CODE_128,
	DATA_MATRIX,
	EAN_8,
	EAN_13,
	ITF,
	MAXICODE,
	PDF_417,
	QR_CODE,
	MICRO_QR_CODE,
	RSS_14,
	RSS_EXPANDED,
	UPC_A,
	UPC_E
};

class DecodeHints;
ref class ReadResult;

	RSS_14,
	RSS_EXPANDED,
	UPC_A,
	UPC_E,
	UPC_EAN_EXTENSION
};

class MultiFormatReader;
	ReadResult^ Read(Windows::Graphics::Imaging::SoftwareBitmap^ bitmap, int cropWidth, int cropHeight);

private:
	~BarcodeReader();

	void init(bool tryHarder, bool tryRotate, const Platform::Array<BarcodeType>^ types);

	static BarcodeFormat ConvertRuntimeToNative(BarcodeType type);
	static BarcodeType ConvertNativeToRuntime(BarcodeFormat format);

	std::unique_ptr<DecodeHints> m_hints;
};

} // ZXing

<MSG> BarcodeFormat: remove UPC_EAN_EXTENSION enum value

See #159 for a detailed discussion and reasoning.

<DFF> @@ -37,8 +37,7 @@ public enum class BarcodeType : int {
 	RSS_14,
 	RSS_EXPANDED,
 	UPC_A,
-	UPC_E,
-	UPC_EAN_EXTENSION
+	UPC_E
 };
 
 class MultiFormatReader;

{'addition_count': 1, 'commit_subject': 'BarcodeFormat: remove UPC_EAN_EXTENSION enum value', 'deletion_count': 2, 'file_extension': '.h', 'lang': 'h', 'license': 'apache-2.0', 'repo_name': 'nu-book/zxing-cpp'}