low-level bar width stream decoder interface. More...

Classes | |
| class | Handler |
| Decoder result handler. More... | |
Public Member Functions | |
| Decoder () | |
| constructor. More... | |
| ~Decoder () | |
| zbar_symbol_type_t | decode_width (unsigned width) |
| process next bar/space width from input stream. More... | |
| const char * | get_addon_name () const |
| retrieve string name for last decode addon. More... | |
| zbar_color_t | get_color () const |
| retrieve color of next element passed to Decoder. More... | |
| const std::string | get_data () const |
| retrieve last decoded data as a std::string. More... | |
| const char * | get_data_chars () const |
| retrieve last decoded data in ASCII format as a char array. More... | |
| int | get_data_length () const |
| retrieve length of decoded binary data. More... | |
| const std::string | get_data_string () const |
| retrieve last decoded data as a std::string. More... | |
| const char * | get_symbol_name () const |
| retrieve string name of last decoded symbol type. More... | |
| zbar_symbol_type_t | get_type () const |
| retrieve last decoded symbol type. More... | |
| void | new_scan () |
| mark start of a new scan pass. More... | |
| Decoder & | operator<< (unsigned width) |
| process next bar/space width from input stream. More... | |
| void | reset () |
| clear all decoder state. More... | |
| 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. More... | |
| int | set_config (std::string cfgstr) |
| set config parsed from configuration string. More... | |
| void | set_handler (Handler &handler) |
| setup callback to handle result data. More... | |
Static Private Member Functions | |
| static void | _cb (zbar_decoder_t *cdcode) |
Private Attributes | |
| zbar_decoder_t * | _decoder |
| Handler * | _handler |
Friends | |
| class | Scanner |
low-level bar width stream decoder interface.
identifies symbols and extracts encoded data
|
inline |
constructor.
References _decoder, and zbar::zbar_decoder_create().

|
inline |
|
inlinestaticprivate |
References _handler, zbar::Decoder::Handler::decode_callback(), and zbar::zbar_decoder_get_userdata().
Referenced by set_handler().


|
inline |
process next bar/space width from input stream.
References _decoder, and zbar::zbar_decode_width().
Referenced by scan_image().


|
inline |
retrieve string name for last decode addon.
References _decoder, zbar::zbar_decoder_get_type(), and zbar::zbar_get_addon_name().

|
inline |
retrieve color of next element passed to Decoder.
References _decoder, and zbar::zbar_decoder_get_color().

|
inline |
retrieve last decoded data as a std::string.
References get_data_string().

|
inline |
retrieve last decoded data in ASCII format as a char array.
References _decoder, and zbar::zbar_decoder_get_data().

|
inline |
retrieve length of decoded binary data.
see zbar_decoder_get_data_length()
References _decoder, and zbar::zbar_decoder_get_data_length().

|
inline |
retrieve last decoded data as a std::string.
References _decoder, zbar::zbar_decoder_get_data(), and zbar::zbar_decoder_get_data_length().
Referenced by get_data(), and scan_image().


|
inline |
retrieve string name of last decoded symbol type.
References _decoder, zbar::zbar_decoder_get_type(), and zbar::zbar_get_symbol_name().

|
inline |
retrieve last decoded symbol type.
References _decoder, and zbar::zbar_decoder_get_type().

|
inline |
mark start of a new scan pass.
References _decoder, and zbar::zbar_decoder_new_scan().

|
inline |
process next bar/space width from input stream.
References _decoder, and zbar::zbar_decode_width().

|
inline |
clear all decoder state.
References _decoder, and zbar::zbar_decoder_reset().
Referenced by scan_image().


|
inline |
set config for indicated symbology (0 for all) to specified value.
References _decoder, and zbar::zbar_decoder_set_config().

|
inline |
set config parsed from configuration string.
References _decoder, and zbar::zbar_decoder_parse_config().

setup callback to handle result data.
References _cb(), _decoder, _handler, zbar::zbar_decoder_set_handler(), and zbar::zbar_decoder_set_userdata().

|
friend |
|
private |
|
private |
Referenced by _cb(), and set_handler().