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>
16 #include <Scandit/ScParserResult.h>
18 
20 
26 typedef struct ScOpaqueParser ScParser;
29 
35 typedef enum {
43 } ScParserType;
44 
56 SC_EXPORT
58  ScParserType type,
59  ScContextStatus *status);
60 
68 SC_EXPORT
69 void sc_parser_free(ScParser *parser);
70 
84 SC_EXPORT
86  char const *str,
87  size_t length,
88  ScParserResult **result);
89 
102 SC_EXPORT
103 ScByteArray sc_parser_set_options(ScParser *parser, char const *str, size_t length);
104 
106 
107 #endif // SC_PARSER_H_
Functions to manage an array of bytes.
DriverLicensing & Identification code, see http://www.aamva.org/.
Definition: ScParser.h:38
Opaque recognition context data structure.
ScBool sc_parser_parse_string(ScParser *parser, char const *str, size_t length, ScParserResult **result)
parse the data contained in the given string
US Services ID, see https://www.cac.mil/.
Definition: ScParser.h:42
Vehicle Identification Number.
Definition: ScParser.h:41
Recognition context interface.
void sc_parser_free(ScParser *parser)
Free the parser and associated resources.
#define SC_EXTERN_C_BEGIN
Start of external C code.
Definition: ScConfig.h:19
GS1 General Specifications standard, see http://www.gs1.org/.
Definition: ScParser.h:36
#define SC_EXTERN_C_END
End of external C code.
Definition: ScConfig.h:28
Status information with error message details.
Definition: ScRecognitionContext.h:255
ScParser * sc_parser_new_with_context(ScRecognitionContext *context, ScParserType type, ScContextStatus *status)
Result object of the Scandit Parsing Library.
ScParserType
Parser type flag.
Definition: ScParser.h:35
Swiss QR codes.
Definition: ScParser.h:40
Parser result.
Health Industry Bar Code, see http://www.hibcc.org/.
Definition: ScParser.h:37
ScByteArray sc_parser_set_options(ScParser *parser, char const *str, size_t length)
Sets the options contained in the given json string.
Machine Readable Travel Documents, see https://www.icao.int.
Definition: ScParser.h:39
Parser interface.
A null terminated array of bytes.
int32_t ScBool
Boolean value, can be SC_TRUE or SC_FALSE.
Definition: ScConfig.h:167