This is the sample program that can see the decode result of barcode data on Watson IoT.
Dependencies: AsciiFont DisplayApp GR-PEACH_video LCD_shield_config LWIPBP3595Interface_STA_for_mbed-os USBDevice
Str.h
00001 // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 00002 #ifndef __STR_H__ 00003 #define __STR_H__ 00004 00005 /* 00006 * Str.h 00007 * zxing 00008 * 00009 * Copyright 2010 ZXing authors All rights reserved. 00010 * 00011 * Licensed under the Apache License, Version 2.0 (the "License"); 00012 * you may not use this file except in compliance with the License. 00013 * You may obtain a copy of the License at 00014 * 00015 * http://www.apache.org/licenses/LICENSE-2.0 00016 * 00017 * Unless required by applicable law or agreed to in writing, software 00018 * distributed under the License is distributed on an "AS IS" BASIS, 00019 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00020 * See the License for the specific language governing permissions and 00021 * limitations under the License. 00022 */ 00023 00024 #include <string> 00025 #include <iostream> 00026 #include <zxing/common/Counted.h> 00027 00028 namespace zxing { 00029 00030 class String; 00031 std::ostream& operator << (std::ostream& out, String const& s); 00032 00033 class String : public Counted { 00034 private: 00035 std::string text_; 00036 public: 00037 explicit String(const std::string &text); 00038 explicit String(int); 00039 char charAt(int) const; 00040 Ref<String> substring(int) const; 00041 const std::string& getText() const; 00042 int size() const; 00043 void append(std::string const& tail); 00044 void append(char c); 00045 int length() const; 00046 friend std::ostream& zxing::operator << (std::ostream& out, String const& s); 00047 }; 00048 00049 } 00050 00051 #endif // __COMMON__STRING_H__
Generated on Tue Jul 12 2022 18:38:05 by 1.7.2