zbar::Decoder Class Reference

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

List of all members.

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.
Decoderoperator<< (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


Member Function Documentation

void zbar::Decoder::reset (  )  [inline]

clear all decoder state.

see zbar_decoder_reset()

void zbar::Decoder::new_scan (  )  [inline]

mark start of a new scan pass.

see zbar_decoder_new_scan()

zbar_symbol_type_t zbar::Decoder::decode_width ( unsigned  width  )  [inline]

process next bar/space width from input stream.

see zbar_decode_width()

Decoder& zbar::Decoder::operator<< ( unsigned  width  )  [inline]

process next bar/space width from input stream.

see zbar_decode_width()

zbar_color_t zbar::Decoder::get_color (  )  const [inline]

retrieve color of next element passed to Decoder.

see zbar_decoder_get_color()

zbar_symbol_type_t zbar::Decoder::get_type (  )  const [inline]

retrieve last decoded symbol type.

see zbar_decoder_get_type()

const char* zbar::Decoder::get_symbol_name (  )  const [inline]

retrieve string name of last decoded symbol type.

see zbar_get_symbol_name()

const char* zbar::Decoder::get_addon_name (  )  const [inline]

retrieve string name for last decode addon.

see zbar_get_addon_name()

const char* zbar::Decoder::get_data_chars (  )  const [inline]

retrieve last decoded data in ASCII format as a char array.

see zbar_decoder_get_data()

const std::string zbar::Decoder::get_data_string (  )  const [inline]

retrieve last decoded data as a std::string.

see zbar_decoder_get_data()

const std::string zbar::Decoder::get_data (  )  const [inline]

retrieve last decoded data as a std::string.

see zbar_decoder_get_data()

int zbar::Decoder::get_data_length (  )  const [inline]

retrieve length of decoded binary data.

see zbar_decoder_get_data_length()

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.

See also:
zbar_decoder_set_config()
Since:
0.4

int zbar::Decoder::set_config ( std::string  cfgstr  )  [inline]

set config parsed from configuration string.

See also:
zbar_decoder_parse_config()
Since:
0.4


The documentation for this class was generated from the following file:

SourceForge.net Logo
spadix@users.sourceforge.net

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.