#include </home/evins/glbarcode/glbarcode/Factory.hpp>
Singleton Barcode factory class.
◆ BarcodeCreateFct
Barcode creation function signature.
◆ createBarcode()
| static Barcode * glbarcode::Factory::createBarcode |
( |
const std::string & |
typeId | ) |
|
|
static |
Create barcode based on type ID string.
- Parameters
-
◆ getSupportedTypes()
| static TypeIdList glbarcode::Factory::getSupportedTypes |
( |
| ) |
|
|
static |
Get list of supported types.
◆ init()
| static void glbarcode::Factory::init |
( |
| ) |
|
|
static |
Initialize barcode factory.
Initializes the barcode factory and registers all built-in Barcode types. It is optional for an application to call init(), because glbarcode++ will automatically initialize the factory on demand.
◆ isTypeSupported()
| static bool glbarcode::Factory::isTypeSupported |
( |
const std::string & |
typeId | ) |
|
|
static |
Is barcode type supported?
- Parameters
-
◆ registerType()
| static void glbarcode::Factory::registerType |
( |
const std::string & |
typeId, |
|
|
BarcodeCreateFct |
fct |
|
) |
| |
|
static |
Register barcode type ID.
- Parameters
-
| [in] | typeId | Barcode type ID string |
| [in] | fct | Function to create barcode object of concrete Barcode class |
The documentation for this class was generated from the following file: