DecoderResult.cpp Example File
appdemos/qtws/QZXing/zxing/zxing/common/DecoderResult.cpp
#include <zxing/common/DecoderResult.h>
using namespace std;
using namespace zxing;
DecoderResult::DecoderResult(ArrayRef<byte> rawBytes,
Ref<String> text,
ArrayRef< ArrayRef<byte> >& byteSegments,
string const& ecLevel, string charSet) :
rawBytes_(rawBytes),
text_(text),
byteSegments_(byteSegments),
ecLevel_(ecLevel), charSet_(charSet) {}
DecoderResult::DecoderResult(ArrayRef<byte> rawBytes,
Ref<String> text)
: rawBytes_(rawBytes), text_(text),charSet_("") {}
ArrayRef<byte> DecoderResult::getRawBytes() {
return rawBytes_;
}
Ref<String> DecoderResult::getText() {
return text_;
}
string DecoderResult::charSet()
{
return charSet_;
}