Apama  10.15.6.0
SemanticMapper.h
Go to the documentation of this file.
1 /*
2  * SemanticMapper.h
3  *
4  * External (client-visible) interface to the Semantic Mapper component of the
5  * Apama Integration Adapter Framework (IAF).
6  *
7  * $Copyright(c) 2002, 2004-2006, 2008-2009, 2013, 2016-2018, 2022 Cumulocity GmbH, Duesseldorf, Germany and/or its affiliates and/or their licensors.$
8  * Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Cumulocity GmbH.
9  *
10  */
11 
12 #ifndef AP_SEMANTIC_MAPPER_H
13 #define AP_SEMANTIC_MAPPER_H
14 
15 #include <AP_Types.h>
16 #include <NormalisedEvent.h>
17 #include <AP_TimestampSet.h>
18 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif /* __cplusplus */
26 
27 
28 /*
29  * Forward declare some structures
30  */
31 struct AP_SemanticMapper;
32 
33 
41 typedef enum {
51 
52 
65 
83 
97  AP_SemanticMapperError (*parseApamaEvent) (struct AP_SemanticMapper* mapper, const AP_char8* eventString, const AP_char8* channelString, AP_NormalisedEvent*** returnArray);
98 
112  AP_SemanticMapperError (*freeNormalizedArray) (struct AP_SemanticMapper* mapper, AP_NormalisedEvent** eventArray, AP_bool hasContent);
113 
130  AP_SemanticMapperError (*createApamaEventStrings) (struct AP_SemanticMapper* mapper, AP_NormalisedEvent* event, AP_char8*** returnArrayPtr, AP_char8*** channelArrayPtr);
131 
145  AP_SemanticMapperError (*freeStringArray) (struct AP_SemanticMapper* mapper, AP_char8** eventArray, AP_bool hasContent);
146 
157  const AP_char8* (*getLastError)(struct AP_SemanticMapper* mapper);
158 };
159 
160 
174 
178  void* reserved;
179 
185 
186 };
187 typedef struct AP_SemanticMapper AP_SemanticMapper;
188 
195 AP_IAFCORE_API AP_SemanticMapper *ap_getSemanticMapper();
196 
197 #ifdef __cplusplus
198 } /* extern "C" */
199 #endif /* __cplusplus */
200 
201 
202 #endif /* AP_SEMANTIC_MAPPER_H */
AP_SemanticMapperError(* parseApamaEvent)(struct AP_SemanticMapper *mapper, const AP_char8 *eventString, const AP_char8 *channelString, AP_NormalisedEvent ***returnArray)
parseApamaEvent
Definition: SemanticMapper.h:97
Normalised Event.
AP_SemanticMapperError(* sendNormalisedEvent)(struct AP_SemanticMapper *mapper, AP_NormalisedEvent *event, AP_TimestampSet *timeStamp)
sendNormalisedEvent
Definition: SemanticMapper.h:82
AP_SemanticMapperError(* createApamaEventStrings)(struct AP_SemanticMapper *mapper, AP_NormalisedEvent *event, AP_char8 ***returnArrayPtr, AP_char8 ***channelArrayPtr)
createApamaEventStrings
Definition: SemanticMapper.h:130
void * reserved
Pointer to private internal data.
Definition: SemanticMapper.h:178
AP_SemanticMapperError(* freeStringArray)(struct AP_SemanticMapper *mapper, AP_char8 **eventArray, AP_bool hasContent)
freeStringArray
Definition: SemanticMapper.h:145
AP_SemanticMapper_Functions.
Definition: SemanticMapper.h:64
struct AP_SemanticMapper_Functions * functions
Function table of Semantic Mapper operations.
Definition: SemanticMapper.h:184
AP_SemanticMapperError
AP_SemanticMapperError.
Definition: SemanticMapper.h:41
AP_SemanticMapperError(* freeNormalizedArray)(struct AP_SemanticMapper *mapper, AP_NormalisedEvent **eventArray, AP_bool hasContent)
freeNormalizedArray
Definition: SemanticMapper.h:112
AP_IAFCORE_API AP_SemanticMapper * ap_getSemanticMapper()
ap_getSemanticMapper
Couldn't queue converted event for injection into Engine.
Definition: SemanticMapper.h:49
AP_NormalisedEvent.
Definition: NormalisedEvent.h:453
Hires Timestamps.
Couldn't convert customer event to Apama event.
Definition: SemanticMapper.h:47
Everything is fine.
Definition: SemanticMapper.h:43
AP_SemanticMapper.
Definition: SemanticMapper.h:173
AP_TimestampSet.
Definition: AP_TimestampSet.h:305
Some unspecified internal error occurred.
Definition: SemanticMapper.h:45