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.
Dependents: BarcodeReader_F103
Symbol Class Reference
decoded barcode symbol result object. More...
#include <Symbol.h>
Data Structures | |
| class | Point |
| image pixel location (x, y) coordinate tuple. More... | |
| class | PointIterator |
| iteration over Point objects in a symbol location polygon. More... | |
Public Member Functions | |
| Symbol (const zbar_symbol_t *sym=NULL) | |
| constructor. | |
| Symbol (const Symbol &sym) | |
| copy constructor. | |
| ~Symbol () | |
| destructor. | |
| operator const zbar_symbol_t * () const | |
| cast to C symbol. | |
| bool | operator== (const Symbol &sym) const |
| test if two Symbol objects refer to the same C symbol. | |
| bool | operator!= (const Symbol &sym) const |
| test if two Symbol objects refer to the same C symbol. | |
| zbar_symbol_type_t | get_type () const |
| retrieve type of decoded symbol. | |
| const std::string | get_type_name () const |
| retrieve the string name of the symbol type. | |
| const std::string | get_addon_name () const |
| retrieve the string name for any addon. | |
| const std::string | get_data () const |
| retrieve data decoded from symbol. | |
| unsigned | get_data_length () const |
| retrieve length of binary data | |
| int | get_count () const |
| retrieve inter-frame coherency count. | |
| PointIterator | point_begin () const |
| create a new PointIterator at the start of the location polygon. | |
| const PointIterator | point_end () const |
| return a PointIterator suitable for ending iteration. | |
| int | get_location_size () const |
| see zbar_symbol_get_loc_size(). | |
| int | get_location_x (unsigned index) const |
| see zbar_symbol_get_loc_x(). | |
| int | get_location_y (unsigned index) const |
| see zbar_symbol_get_loc_y(). | |
| const std::string | xml () const |
| see zbar_symbol_xml(). | |
Protected Member Functions | |
| void | init (const zbar_symbol_t *sym=NULL) |
| (re)initialize Symbol from C symbol object. | |
Related Functions | |
(Note that these are not member functions.) | |
| static std::ostream & | operator<< (std::ostream &out, const Symbol &sym) |
Detailed Description
decoded barcode symbol result object.
stores type, data, and image location of decoded symbol
Definition at line 98 of file Symbol.h.
Constructor & Destructor Documentation
| Symbol | ( | const zbar_symbol_t * | sym = NULL ) |
Member Function Documentation
| const std::string get_addon_name | ( | ) | const |
| int get_count | ( | ) | const |
retrieve inter-frame coherency count.
- Since:
- 1.5
| const std::string get_data | ( | ) | const |
| unsigned get_data_length | ( | ) | const |
| int get_location_size | ( | ) | const |
| int get_location_x | ( | unsigned | index ) | const |
| int get_location_y | ( | unsigned | index ) | const |
| zbar_symbol_type_t get_type | ( | ) | const |
| const std::string get_type_name | ( | ) | const |
| void init | ( | const zbar_symbol_t * | sym = NULL ) |
[protected] |
| operator const zbar_symbol_t * | ( | ) | const |
| bool operator!= | ( | const Symbol & | sym ) | const |
| bool operator== | ( | const Symbol & | sym ) | const |
| PointIterator point_begin | ( | ) | const |
create a new PointIterator at the start of the location polygon.
| const PointIterator point_end | ( | ) | const |
return a PointIterator suitable for ending iteration.
| const std::string xml | ( | ) | const |
see zbar_symbol_xml().
Friends And Related Function Documentation
Generated on Tue Jul 12 2022 21:31:48 by
1.7.2