glbarcode++
 
Loading...
Searching...
No Matches
gbc_factory.h File Reference

Go to the source code of this file.

Functions

void gbc_factory_init (void)
 
gbcBarcodegbc_factory_create_barcode (char *type_id)
 
bool gbc_factory_is_type_supported (char *type_id)
 
char ** gbc_factory_get_supported_types (void)
 
void gbc_factory_free_supported_types (char **list)
 

Detailed Description

CAPI front-end to glbarcode::Factory.

Function Documentation

◆ gbc_factory_create_barcode()

gbcBarcode * gbc_factory_create_barcode ( char *  type_id)

Create barcode based on type ID string.

Parameters
type_idBarcode type ID string
Returns
Pointer to newly allocated barcode object

◆ gbc_factory_free_supported_types()

void gbc_factory_free_supported_types ( char **  list)

Free previously allocated list of suppoted types.

Parameters
listList of type ID strings. Created by gbc_factory_get_supported_types().

◆ gbc_factory_get_supported_types()

char ** gbc_factory_get_supported_types ( void  )

Get list of supported types.

Returns
Newly allocated list of type ID strings. Terminated by NULL.

◆ gbc_factory_init()

void gbc_factory_init ( void  )

Initialize barcode factory.

◆ gbc_factory_is_type_supported()

bool gbc_factory_is_type_supported ( char *  type_id)

Is barcode type supported?

Parameters
type_idBarcode type ID string