DecoderResult.h Example File
appdemos/qtws/QZXing/zxing/zxing/common/DecoderResult.h
#ifndef __DECODER_RESULT_H__
#define __DECODER_RESULT_H__
#include <zxing/common/Counted.h>
#include <zxing/common/Array.h>
#include <string>
#include <zxing/common/Str.h>
#include <zxing/common/Types.h>
namespace zxing {
class DecoderResult : public Counted {
private:
ArrayRef<byte> rawBytes_;
Ref<String> text_;
ArrayRef< ArrayRef<byte> > byteSegments_;
std::string ecLevel_;
std::string charSet_;
public:
DecoderResult(ArrayRef<byte> rawBytes,
Ref<String> text,
ArrayRef< ArrayRef<byte> >& byteSegments,
std::string const& ecLevel,
std::string charSet = "");
DecoderResult(ArrayRef<byte> rawBytes, Ref<String> text);
ArrayRef<byte> getRawBytes();
Ref<String> getText();
std::string charSet();
};
}
#endif // __DECODER_RESULT_H__