ScParser.h
Go to the documentation of this file.
1 
10 #ifndef SCANDIT_PARSER_H_
11 #define SCANDIT_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 
57 SC_EXPORT
59  ScParserType type,
60  ScContextStatusFlag *status);
61 
69 SC_EXPORT
70 void sc_parser_free(ScParser *parser);
71 
85 SC_EXPORT
87  char const *str,
88  size_t length,
89  ScParserResult **result);
90 
103 SC_EXPORT
104 ScByteArray sc_parser_set_options(ScParser *parser, char const *str, size_t length);
105 
107 
108 #endif // SCANDIT_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
ScContextStatusFlag
Context status of a frame.
Definition: ScRecognitionContext.h:47
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
ScParser * sc_parser_new_with_context(ScRecognitionContext *context, ScParserType type, ScContextStatusFlag *status)
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
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:158