Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Result.h
00001 #ifndef __RESULT_H__ 00002 #define __RESULT_H__ 00003 00004 /* 00005 * Result.h 00006 * zxing 00007 * 00008 * Copyright 2010 ZXing authors All rights reserved. 00009 * 00010 * Licensed under the Apache License, Version 2.0 (the "License"); 00011 * you may not use this file except in compliance with the License. 00012 * You may obtain a copy of the License at 00013 * 00014 * http://www.apache.org/licenses/LICENSE-2.0 00015 * 00016 * Unless required by applicable law or agreed to in writing, software 00017 * distributed under the License is distributed on an "AS IS" BASIS, 00018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00019 * See the License for the specific language governing permissions and 00020 * limitations under the License. 00021 */ 00022 00023 #include <string> 00024 #include <zxing/common/Array.h> 00025 #include <zxing/common/Counted.h> 00026 #include <zxing/common/Str.h> 00027 #include <zxing/ResultPoint.h> 00028 #include <zxing/BarcodeFormat.h> 00029 00030 namespace zxing { 00031 00032 class Result : public Counted { 00033 private: 00034 Ref<String> text_; 00035 ArrayRef<char> rawBytes_; 00036 ArrayRef< Ref<ResultPoint> > resultPoints_; 00037 BarcodeFormat format_; 00038 00039 public: 00040 Result(Ref<String> text, 00041 ArrayRef<char> rawBytes, 00042 ArrayRef< Ref<ResultPoint> > resultPoints, 00043 BarcodeFormat format); 00044 ~Result(); 00045 Ref<String> getText(); 00046 ArrayRef<char> getRawBytes(); 00047 ArrayRef< Ref<ResultPoint> > const& getResultPoints() const; 00048 ArrayRef< Ref<ResultPoint> >& getResultPoints(); 00049 BarcodeFormat getBarcodeFormat() const; 00050 00051 friend std::ostream& operator<<(std::ostream &out, Result& result); 00052 }; 00053 00054 } 00055 #endif // __RESULT_H__
Generated on Wed Jul 13 2022 20:52:13 by
