Logo Search packages:      
Sourcecode: zebra version File versions  Download package

const char* zebra_get_symbol_name ( zebra_symbol_type_t  sym  ) 

retrieve string name for symbol encoding.

Parameters:
sym symbol type encoding
Returns:
the static string name for the specified symbol type, or "UNKNOWN" if the encoding is not recognized

Definition at line 30 of file symbol.c.

References ZEBRA_CODE128, ZEBRA_CODE39, ZEBRA_EAN13, ZEBRA_EAN8, zebra_get_symbol_name(), ZEBRA_I25, ZEBRA_ISBN10, ZEBRA_ISBN13, ZEBRA_SYMBOL, ZEBRA_UPCA, and ZEBRA_UPCE.

Referenced by zebra::Decoder::get_symbol_name(), zebra::Symbol::get_type_name(), and zebra_get_symbol_name().

{
    switch(sym & ZEBRA_SYMBOL) {
    case ZEBRA_EAN8: return("EAN-8");
    case ZEBRA_ISBN10: return("ISBN-10");
    case ZEBRA_UPCE: return("UPC-E");
    case ZEBRA_UPCA: return("UPC-A");
    case ZEBRA_EAN13: return("EAN-13");
    case ZEBRA_ISBN13: return("ISBN-13");
    case ZEBRA_I25: return("I2/5");
    case ZEBRA_CODE39: return("CODE-39");
    case ZEBRA_CODE128: return("CODE-128");
    default: return("UNKNOWN");
    }
}


Generated by  Doxygen 1.6.0   Back to index