1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Database of pre-defined templates
7 <!-- ##### SECTION Long_Description ##### -->
9 This section describes a set of functions to locate and add templates and related information in
10 the LibGlabels template database.
13 <!-- ##### SECTION See_Also ##### -->
18 <!-- ##### SECTION Stability_Level ##### -->
21 <!-- ##### ENUM lglDbRegStatus ##### -->
23 This enumeration defines a set of possible return values for lgl_db_register_template().
26 @LGL_DB_REG_OK: Registration successful.
27 @LGL_DB_REG_BAD_PAPER_ID: Registration failed because paper id is unknown.
28 @LGL_DB_REG_BRAND_PART_EXISTS: Registration failed because template with same brand and part name/number already exists.
29 @LGL_DB_REG_FILE_WRITE_ERROR: Registration failed because an error while writing to disk.
31 <!-- ##### FUNCTION lgl_db_init ##### -->
38 <!-- ##### FUNCTION lgl_db_get_paper_id_list ##### -->
46 <!-- ##### FUNCTION lgl_db_free_paper_id_list ##### -->
54 <!-- ##### FUNCTION lgl_db_get_paper_name_list ##### -->
62 <!-- ##### FUNCTION lgl_db_free_paper_name_list ##### -->
70 <!-- ##### FUNCTION lgl_db_lookup_paper_from_id ##### -->
79 <!-- ##### FUNCTION lgl_db_lookup_paper_from_name ##### -->
88 <!-- ##### FUNCTION lgl_db_lookup_paper_id_from_name ##### -->
97 <!-- ##### FUNCTION lgl_db_lookup_paper_name_from_id ##### -->
106 <!-- ##### FUNCTION lgl_db_is_paper_id_known ##### -->
115 <!-- ##### FUNCTION lgl_db_is_paper_id_other ##### -->
124 <!-- ##### FUNCTION lgl_db_get_category_id_list ##### -->
132 <!-- ##### FUNCTION lgl_db_free_category_id_list ##### -->
140 <!-- ##### FUNCTION lgl_db_get_category_name_list ##### -->
148 <!-- ##### FUNCTION lgl_db_free_category_name_list ##### -->
156 <!-- ##### FUNCTION lgl_db_lookup_category_from_id ##### -->
165 <!-- ##### FUNCTION lgl_db_lookup_category_from_name ##### -->
174 <!-- ##### FUNCTION lgl_db_lookup_category_id_from_name ##### -->
183 <!-- ##### FUNCTION lgl_db_lookup_category_name_from_id ##### -->
192 <!-- ##### FUNCTION lgl_db_is_category_id_known ##### -->
201 <!-- ##### FUNCTION lgl_db_get_brand_list ##### -->
211 <!-- ##### FUNCTION lgl_db_free_brand_list ##### -->
219 <!-- ##### FUNCTION lgl_db_register_template ##### -->
228 <!-- ##### FUNCTION lgl_db_does_template_exist ##### -->
238 <!-- ##### FUNCTION lgl_db_does_template_name_exist ##### -->
247 <!-- ##### FUNCTION lgl_db_get_template_name_list_unique ##### -->
258 <!-- ##### FUNCTION lgl_db_get_template_name_list_all ##### -->
269 <!-- ##### FUNCTION lgl_db_free_template_name_list ##### -->
277 <!-- ##### FUNCTION lgl_db_lookup_template_from_name ##### -->
286 <!-- ##### FUNCTION lgl_db_print_known_papers ##### -->
293 <!-- ##### FUNCTION lgl_db_print_known_categories ##### -->
300 <!-- ##### FUNCTION lgl_db_print_known_templates ##### -->
307 <!-- ##### FUNCTION lgl_db_print_aliases ##### -->