DecodeHints.h Example File
appdemos/qtws/QZXing/zxing/zxing/DecodeHints.h
#ifndef __DECODEHINTS_H_
#define __DECODEHINTS_H_
#include <zxing/BarcodeFormat.h>
#include <zxing/ResultPointCallback.h>
namespace zxing {
typedef unsigned int DecodeHintType;
class DecodeHints;
DecodeHints operator | (DecodeHints const&, DecodeHints const&);
class DecodeHints {
private:
DecodeHintType hints;
Ref<ResultPointCallback> callback;
public:
static const DecodeHintType AZTEC_HINT;
static const DecodeHintType CODABAR_HINT;
static const DecodeHintType CODE_39_HINT;
static const DecodeHintType CODE_93_HINT;
static const DecodeHintType CODE_128_HINT;
static const DecodeHintType DATA_MATRIX_HINT;
static const DecodeHintType EAN_8_HINT;
static const DecodeHintType EAN_13_HINT;
static const DecodeHintType ITF_HINT;
static const DecodeHintType MAXICODE_HINT;
static const DecodeHintType PDF_417_HINT;
static const DecodeHintType QR_CODE_HINT;
static const DecodeHintType RSS_14_HINT;
static const DecodeHintType RSS_EXPANDED_HINT;
static const DecodeHintType UPC_A_HINT;
static const DecodeHintType UPC_E_HINT;
static const DecodeHintType UPC_EAN_EXTENSION_HINT;
static const DecodeHintType ASSUME_GS1;
static const DecodeHintType TRYHARDER_HINT;
static const DecodeHintType CHARACTER_SET;
static const DecodeHints PRODUCT_HINT;
static const DecodeHints ONED_HINT;
static const DecodeHints DEFAULT_HINT;
DecodeHints();
DecodeHints(const DecodeHintType &init);
DecodeHints(const DecodeHints &other);
void addFormat(BarcodeFormat toadd);
bool containsFormat(BarcodeFormat tocheck) const;
bool isEmpty() const {return (hints==0);}
void clear() {hints=0;}
void setTryHarder(bool toset);
bool getTryHarder() const;
void setResultPointCallback(Ref<ResultPointCallback> const&);
Ref<ResultPointCallback> getResultPointCallback() const;
DecodeHints& operator =(DecodeHints const &other);
friend DecodeHints operator| (DecodeHints const&, DecodeHints const&);
};
}
#endif