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
Decoder Class Reference
low-level bar width stream decoder interface. More...
#include <Decoder.h>
Data Structures | |
| class | Handler |
| Decoder result handler. More... | |
Public Member Functions | |
| Decoder () | |
| constructor. | |
| void | reset () |
| clear all decoder state. | |
| void | new_scan () |
| mark start of a new scan pass. | |
| zbar_symbol_type_t | decode_width (unsigned width) |
| process next bar/space width from input stream. | |
| Decoder & | operator<< (unsigned width) |
| process next bar/space width from input stream. | |
| zbar_color_t | get_color () const |
| retrieve color of next element passed to Decoder. | |
| zbar_symbol_type_t | get_type () const |
| retrieve last decoded symbol type. | |
| const char * | get_symbol_name () const |
| retrieve string name of last decoded symbol type. | |
| const char * | get_addon_name () const |
| retrieve string name for last decode addon. | |
| const char * | get_data_chars () const |
| retrieve last decoded data in ASCII format as a char array. | |
| const std::string | get_data_string () const |
| retrieve last decoded data as a std::string. | |
| const std::string | get_data () const |
| retrieve last decoded data as a std::string. | |
| int | get_data_length () const |
| retrieve length of decoded binary data. | |
| void | set_handler (Handler &handler) |
| setup callback to handle result data. | |
| int | set_config (zbar_symbol_type_t symbology, zbar_config_t config, int value) |
| set config for indicated symbology (0 for all) to specified value. | |
| int | set_config (std::string cfgstr) |
| set config parsed from configuration string. | |
Detailed Description
low-level bar width stream decoder interface.
identifies symbols and extracts encoded data
Definition at line 40 of file Decoder.h.
Constructor & Destructor Documentation
Member Function Documentation
| zbar_symbol_type_t decode_width | ( | unsigned | width ) |
process next bar/space width from input stream.
| const char* get_addon_name | ( | ) | const |
retrieve string name for last decode addon.
| zbar_color_t get_color | ( | ) | const |
retrieve color of next element passed to Decoder.
| const std::string get_data | ( | ) | const |
retrieve last decoded data as a std::string.
| const char* get_data_chars | ( | ) | const |
retrieve last decoded data in ASCII format as a char array.
| int get_data_length | ( | ) | const |
retrieve length of decoded binary data.
| const std::string get_data_string | ( | ) | const |
retrieve last decoded data as a std::string.
| const char* get_symbol_name | ( | ) | const |
retrieve string name of last decoded symbol type.
| zbar_symbol_type_t get_type | ( | ) | const |
retrieve last decoded symbol type.
| void new_scan | ( | ) |
| Decoder& operator<< | ( | unsigned | width ) |
process next bar/space width from input stream.
| void reset | ( | ) |
| int set_config | ( | std::string | cfgstr ) |
| int set_config | ( | zbar_symbol_type_t | symbology, |
| zbar_config_t | config, | ||
| int | value | ||
| ) |
set config for indicated symbology (0 for all) to specified value.
- See also:
- zbar_decoder_set_config()
- Since:
- 0.4
Generated on Tue Jul 12 2022 21:31:48 by
1.7.2