decoded barcode symbol result object. More...

Classes | |
| 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. More... | |
| Symbol (const Symbol &sym) | |
| copy constructor. More... | |
| ~Symbol () | |
| destructor. More... | |
| const std::string | get_addon_name () const |
| retrieve the string name for any addon. More... | |
| SymbolSet | get_components () const |
| int | get_count () const |
| retrieve inter-frame coherency count. More... | |
| const std::string | get_data () const |
| retrieve data decoded from symbol. More... | |
| unsigned | get_data_length () const |
| retrieve length of binary data More... | |
| int | get_location_size () const |
| see zbar_symbol_get_loc_size(). More... | |
| int | get_location_x (unsigned index) const |
| see zbar_symbol_get_loc_x(). More... | |
| int | get_location_y (unsigned index) const |
| see zbar_symbol_get_loc_y(). More... | |
| zbar_symbol_type_t | get_type () const |
| retrieve type of decoded symbol. More... | |
| const std::string | get_type_name () const |
| retrieve the string name of the symbol type. More... | |
| operator const zbar_symbol_t * () const | |
| cast to C symbol. More... | |
| bool | operator!= (const Symbol &sym) const |
| test if two Symbol objects refer to the same C symbol. More... | |
| bool | operator== (const Symbol &sym) const |
| test if two Symbol objects refer to the same C symbol. More... | |
| PointIterator | point_begin () const |
| create a new PointIterator at the start of the location polygon. More... | |
| const PointIterator | point_end () const |
| return a PointIterator suitable for ending iteration. More... | |
| void | ref (int delta=1) const |
| const std::string | xml () const |
| see zbar_symbol_xml(). More... | |
Protected Member Functions | |
| void | init (const zbar_symbol_t *sym=NULL) |
| (re)initialize Symbol from C symbol object. More... | |
Private Attributes | |
| std::string | _data |
| const zbar_symbol_t * | _sym |
| zbar_symbol_type_t | _type |
| char * | _xmlbuf |
| unsigned | _xmllen |
Friends | |
| class | SymbolIterator |
Related Functions | |
(Note that these are not member functions.) | |
| static std::ostream & | operator<< (std::ostream &out, const Symbol &sym) |
decoded barcode symbol result object.
stores type, data, and image location of decoded symbol
|
inline |
|
inline |
|
inline |
|
inline |
retrieve the string name for any addon.
References zbar::zbar_get_addon_name().
Referenced by operator<<().


|
inline |
References zbar::SymbolSet::SymbolSet(), and zbar::zbar_symbol_get_components().

|
inline |
retrieve inter-frame coherency count.
References zbar::zbar_symbol_get_count().

|
inline |
retrieve data decoded from symbol.
Referenced by operator<<().

|
inline |
retrieve length of binary data
References zbar::zbar_symbol_get_data_length().

|
inline |
see zbar_symbol_get_loc_size().
References zbar::zbar_symbol_get_loc_size().

|
inline |
|
inline |
|
inline |
retrieve type of decoded symbol.
|
inline |
retrieve the string name of the symbol type.
References zbar::zbar_get_symbol_name().
Referenced by operator<<().


|
inlineprotected |
(re)initialize Symbol from C symbol object.
References zbar::ZBAR_NONE, zbar::zbar_symbol_get_data(), zbar::zbar_symbol_get_data_length(), and zbar::zbar_symbol_get_type().

|
inline |
cast to C symbol.
|
inline |
test if two Symbol objects refer to the same C symbol.
|
inline |
|
inline |
create a new PointIterator at the start of the location polygon.
|
inline |
return a PointIterator suitable for ending iteration.
|
inline |
|
inline |
see zbar_symbol_xml().
References zbar::zbar_symbol_xml().

|
related |
stream the string representation of a Symbol.
References get_addon_name(), get_data(), and get_type_name().

|
friend |
|
private |
|
private |
Referenced by operator==().
|
private |
|
private |
|
private |