ScParserResult.h
Go to the documentation of this file.
1
10#ifndef SCANDIT_PARSER_RESULT_H_
11#define SCANDIT_PARSER_RESULT_H_
12
13#include <stddef.h>
14
15#include <Scandit/ScByteArray.h>
16#include <Scandit/ScCommon.h>
17
19
26typedef struct ScOpaqueParserResult ScParserResult;
27
34typedef struct ScOpaqueField ScField;
35
43SC_EXPORT
45
54SC_EXPORT
56
68SC_EXPORT
70 char const *field_name);
71
82SC_EXPORT
84
94SC_EXPORT
96
109SC_EXPORT
111
123SC_EXPORT
125
136SC_EXPORT
138
149SC_EXPORT
151
162SC_EXPORT
164
176SC_EXPORT
177ScByteArray sc_field_get_issue(ScField const *field, uint32_t index);
178
187SC_EXPORT
189
191
192#endif // SCANDIT_PARSER_RESULT_H_
Functions to manage an array of bytes.
Common functions and data structures.
#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
A null terminated array of bytes.
Parser result field.
ScByteArray sc_field_get_name(ScField const *field)
Returns the name of the given field.
ScByteArray sc_field_get_issue(ScField const *field, uint32_t index)
Returns issue string at the given index.
size_t sc_field_get_issues_count(ScField const *field)
Returns number of issues for the given field.
ScByteArray sc_field_get_json_values(ScField const *field)
Returns the json representation of the given field.
ScByteArray sc_field_get_string_value(ScField const *field)
Returns the string value of the given field.
Parser result.
size_t sc_parser_result_get_fields_count(ScParserResult const *result)
Get number of fields of this result.
ScBool sc_parser_result_is_ok(ScParserResult const *result)
Returns true when result contains a valid result, false if an error occurred during parsing.
ScField const * sc_parser_result_get_field_by_index(ScParserResult const *result, size_t index)
Get the data associated with a field.
ScField const * sc_parser_result_get_field_by_name(ScParserResult const *result, char const *field_name)
Get the data associated with a field.
void sc_parser_result_free(ScParserResult *result)
Free the parsing result and any resource associated with it, including all its fields.
ScByteArray sc_parser_result_get_error_message(ScParserResult const *result)
Retrieve error message from parser result.
ScByteArray sc_parser_result_get_json_values(ScParserResult const *result)
Returns the json string value of the fields in a result.