Classes | |
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. |
identifies symbols and extracts encoded data
void zbar::Decoder::reset | ( | ) | [inline] |
clear all decoder state.
void zbar::Decoder::new_scan | ( | ) | [inline] |
mark start of a new scan pass.
zbar_symbol_type_t zbar::Decoder::decode_width | ( | unsigned | width | ) | [inline] |
process next bar/space width from input stream.
Decoder& zbar::Decoder::operator<< | ( | unsigned | width | ) | [inline] |
process next bar/space width from input stream.
zbar_color_t zbar::Decoder::get_color | ( | ) | const [inline] |
retrieve color of next element passed to Decoder.
zbar_symbol_type_t zbar::Decoder::get_type | ( | ) | const [inline] |
retrieve last decoded symbol type.
const char* zbar::Decoder::get_symbol_name | ( | ) | const [inline] |
retrieve string name of last decoded symbol type.
const char* zbar::Decoder::get_addon_name | ( | ) | const [inline] |
retrieve string name for last decode addon.
const char* zbar::Decoder::get_data_chars | ( | ) | const [inline] |
retrieve last decoded data in ASCII format as a char array.
const std::string zbar::Decoder::get_data_string | ( | ) | const [inline] |
retrieve last decoded data as a std::string.
const std::string zbar::Decoder::get_data | ( | ) | const [inline] |
retrieve last decoded data as a std::string.
int zbar::Decoder::get_data_length | ( | ) | const [inline] |
retrieve length of decoded binary data.
int zbar::Decoder::set_config | ( | zbar_symbol_type_t | symbology, | |
zbar_config_t | config, | |||
int | value | |||
) | [inline] |
set config for indicated symbology (0 for all) to specified value.
int zbar::Decoder::set_config | ( | std::string | cfgstr | ) | [inline] |
Copyright 2008-2010 (c) Jeff Brown
This documentation is part of the ZBar Barcode Reader; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.