Apama  10.15.6.1
sag_connectivity_c.h
Go to the documentation of this file.
1 /*
2  * Title: sag_connectivity_c.h
3  * Description: C-ABI data_t type
4  * $Copyright (c) 2015-2017, 2019, 2022 Cumulocity GmbH, Duesseldorf, Germany and/or its affiliates and/or their licensors.$
5  * Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Cumulocity GmbH.
6  */
7 
13 // Contains the C ABI for connectivity plugins.
14 
15 #ifndef _CMESSAGEDATA_H_
16 #define _CMESSAGEDATA_H_
17 
18 #include <stdbool.h>
19 #include <stdint.h>
20 
21 #include <sag_internal/c_macros.hpp>
22 
23 /*
24  * C-ABI for SAG connectivity plugins. This should not be used directly.
25  * Instead use the C++ API in sag_connectivity_cpp.hpp.
26  */
27 #ifdef __cplusplus
28 extern "C" {
29 #endif // __cplusplus
30 
33 {
58  SAG_DATA_CONST_STRING
59 
60  // If you add to this enum then update to_string below.
61 };
62 typedef enum sag_data_tag sag_data_tag;
63 
64 
68 enum sag_error_t
69 {
71  SAG_ERROR_OK,
73  SAG_ERROR_EXCEPTION,
75  SAG_ERROR_FAILED,
77  SAG_ERROR_UNKNOWN
78 };
80 typedef enum sag_error_t sag_error_t;
81 
84 {
99 };
100 typedef enum sag_log_level_t sag_log_level_t;
101 
109 {
111  uint64_t d;
112 };
113 
115 
116 #include <sag_internal/c_types.hpp>
117 
118 #include <sag_internal/c_functions.hpp>
119 
120 #ifdef __cplusplus
121 } // extern "C"
122 #endif // __cplusplus
123 
124 #endif //_CMESSAGEDATA_H_
sag_data_tag
A descriminator for the content of the data_t union.
Definition: sag_connectivity_c.h:32
Fatal errors.
Definition: sag_connectivity_c.h:88
byte-array (8-bit signed int)
Definition: sag_connectivity_c.h:51
Trace.
Definition: sag_connectivity_c.h:98
list of data
Definition: sag_connectivity_c.h:47
Debug messages.
Definition: sag_connectivity_c.h:96
Critical log messages.
Definition: sag_connectivity_c.h:86
sag_log_level_t
Log levels for logging to the host log file.
Definition: sag_connectivity_c.h:83
Non-fatal errors.
Definition: sag_connectivity_c.h:90
64-bit signed int
Definition: sag_connectivity_c.h:41
Informational messages (default)
Definition: sag_connectivity_c.h:94
64-bit IEEE-754 decimal
Definition: sag_connectivity_c.h:43
map of data:data
Definition: sag_connectivity_c.h:49
uint64_t d
The IEEE-754 data.
Definition: sag_connectivity_c.h:111
Decimals are implemented with an underlying 64bit int conforming to IEEE 754 decimal 64.
Definition: sag_connectivity_c.h:108
a void* + deleter and copy function pointers
Definition: sag_connectivity_c.h:53
Bool.
Definition: sag_connectivity_c.h:37
utf8-encoded const char*
Definition: sag_connectivity_c.h:45
64-bit float
Definition: sag_connectivity_c.h:39
Empty.
Definition: sag_connectivity_c.h:35
Warnings.
Definition: sag_connectivity_c.h:92