SpParser.h
Go to the documentation of this file.
1 
10 #ifndef SCANDIT_PARSER_PARSER_H_
11 #define SCANDIT_PARSER_PARSER_H_
12 
16 
17 SP_BEGIN_EXTERN_C
18 
24 typedef struct SpOpaqueParser SpParser;
27 
33 typedef enum {
41 } SpParserType;
42 
55 SC_EXPORT
57  SpParserType type,
58  ScContextStatusFlag *status);
59 
67 SC_EXPORT
68 void sp_parser_free(SpParser *parser);
69 
83 SC_EXPORT
84 SpBool sp_parser_parse_string(SpParser *parser,
85  char const *str,
86  size_t length,
87  SpParserResult **result);
88 
101 SC_EXPORT
102 SpData sp_parser_set_options(SpParser *parser, char const *str, size_t length);
103 
104 SP_END_EXTERN_C
105 
106 #endif // SCANDIT_PARSER_PARSER_H_
Common data structures of the Scandit Parsing Library.
Opaque recognition context data structure.
Health Industry Bar Code, see http://www.hibcc.org/.
Definition: SpParser.h:35
SpParserType
Parser type flag.
Definition: SpParser.h:33
ScContextStatusFlag
Context status of a frame.
Definition: ScRecognitionContext.h:49
void sp_parser_free(SpParser *parser)
Free the parser and associated resources.
Recognition context interface.
DriverLicensing & Identification code, see http://www.aamva.org/.
Definition: SpParser.h:36
US Services ID, see https://www.cac.mil/.
Definition: SpParser.h:40
Machine Readable Travel Documents, see https://www.icao.int.
Definition: SpParser.h:37
Vehicle Identification Number.
Definition: SpParser.h:39
SpData sp_parser_set_options(SpParser *parser, char const *str, size_t length)
Sets the options contained in the given json string.
Swiss QR codes.
Definition: SpParser.h:38
SpBool sp_parser_parse_string(SpParser *parser, char const *str, size_t length, SpParserResult **result)
parse the data contained in the given string
Represents a binary blob of data, or a string of characters.
Result object of the Scandit Parsing Library.
Parser result.
SpParser * sp_parser_new_with_context(ScRecognitionContext *context, SpParserType type, ScContextStatusFlag *status)
GS1 General Specifications standard, see http://www.gs1.org/.
Definition: SpParser.h:34
Parser interface.