51Degrees Common C/C++  4.1

A shared functionality library that is used by 51Degrees products

results.h

1 /* *********************************************************************
2  * This Source Code Form is copyright of 51 Degrees Mobile Experts Limited.
3  * Copyright 2019 51 Degrees Mobile Experts Limited, 5 Charlotte Close,
4  * Caversham, Reading, Berkshire, United Kingdom RG4 7BY
5  *
6  * This Source Code Form is subject to the terms of the Mozilla Public
7  * License, v. 2.0.
8  *
9  * If a copy of the MPL was not distributed with this file, You can obtain
10  * one at http://mozilla.org/MPL/2.0/.
11  *
12  * This Source Code Form is "Incompatible With Secondary Licenses", as
13  * defined by the Mozilla Public License, v. 2.0.
14  * ******************************************************************** */
15 
16 #ifndef FIFTYONE_DEGREES_RESULTS_INCLUDED
17 #define FIFTYONE_DEGREES_RESULTS_INCLUDED
18 
41 #include "data.h"
42 #include "status.h"
43 #include "dataset.h"
44 
45 #ifdef __cplusplus
46 #define EXTERNAL extern "C"
47 #else
48 #define EXTERNAL
49 #endif
50 
54 typedef enum e_fiftyone_degrees_results_no_value_reason {
84 
88 typedef struct fiftyone_degrees_results_base_t {
89  void *dataSet;
91 
100  void *dataSet);
101 
106 #endif
No hash nodes were matched, see the Hash API.
Definition: results.h:59
There are too many values to be expressed as the requested type.
Definition: results.h:78
There are no results to get a value from.
Definition: results.h:75
None of the above.
Definition: results.h:82
EXTERNAL fiftyoneDegreesResultsBase * fiftyoneDegreesResultsInit(fiftyoneDegreesResultsBase *results, void *dataSet)
Initialise a set of results by setting the data set they are associated with.
Definition: results.c:20
The requested property does not exist, or is not a required property.
Definition: results.h:63
fiftyoneDegreesResultsNoValueReason
Enum containing reasons which cause a value to not be present or valid.
Definition: results.h:54
The difference value is higher than the threshold, see the Pattern API.
Definition: results.h:55
void * dataSet
Pointer to the data set associated with the results.
Definition: results.h:89
There is no result which contains a value for the requested property.
Definition: results.h:68
Base results structure which any processing results should extend.
Definition: results.h:88