ScParser.h
Go to the documentation of this file.
1
10#ifndef SC_PARSER_H_
11#define SC_PARSER_H_
12
13#include <stddef.h>
14
15#include <Scandit/ScByteArray.h>
18
20
27typedef struct ScOpaqueParser ScParser;
28
34typedef enum {
43
55SC_EXPORT
57 ScParserType type,
58 ScContextStatus *status);
59
67SC_EXPORT
69
83SC_EXPORT
85 char const *str,
86 size_t length,
87 ScParserResult **result);
88
101SC_EXPORT
102ScByteArray sc_parser_set_options(ScParser *parser, char const *str, size_t length);
103
105
106#endif // SC_PARSER_H_
Functions to manage an array of bytes.
#define SC_EXTERN_C_BEGIN
Start of external C code.
Definition: ScConfig.h:19
#define SC_EXTERN_C_END
End of external C code.
Definition: ScConfig.h:28
int32_t ScBool
Boolean value, can be SC_TRUE or SC_FALSE.
Definition: ScConfig.h:167
ScParserType
Parser type flag.
Definition: ScParser.h:34
@ SC_PARSER_TYPE_HIBC
Health Industry Bar Code, see http://www.hibcc.org/.
Definition: ScParser.h:36
@ SC_PARSER_TYPE_DLID
DriverLicensing & Identification code, see http://www.aamva.org/.
Definition: ScParser.h:37
@ SC_PARSER_TYPE_US_USID
US Services ID, see https://www.cac.mil/.
Definition: ScParser.h:41
@ SC_PARSER_TYPE_MRTD
Machine Readable Travel Documents, see https://www.icao.int.
Definition: ScParser.h:38
@ SC_PARSER_TYPE_SWISSQR
Swiss QR codes.
Definition: ScParser.h:39
@ SC_PARSER_TYPE_GS1_AI
GS1 General Specifications standard, see http://www.gs1.org/.
Definition: ScParser.h:35
@ SC_PARSER_TYPE_VIN
Vehicle Identification Number.
Definition: ScParser.h:40
Result object of the Scandit Parsing Library.
Recognition context interface.
Status information with error message details.
Definition: ScRecognitionContext.h:254
A null terminated array of bytes.
Parser interface.
ScByteArray sc_parser_set_options(ScParser *parser, char const *str, size_t length)
Sets the options contained in the given json string.
void sc_parser_free(ScParser *parser)
Free the parser and associated resources.
ScBool sc_parser_parse_string(ScParser *parser, char const *str, size_t length, ScParserResult **result)
parse the data contained in the given string
ScParser * sc_parser_new_with_context(ScRecognitionContext *context, ScParserType type, ScContextStatus *status)
Parser result.
Opaque recognition context data structure.