Apama  10.15.1.2
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 Progress Software Corporation (PSC). All rights reserved.$
8  * $Copyright (c) 2013, 2016-2018, 2022 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.$
9  * Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG
10  *
11  */
12 
13 #ifndef AP_SEMANTIC_MAPPER_H
14 #define AP_SEMANTIC_MAPPER_H
15 
16 #include <AP_Types.h>
17 #include <NormalisedEvent.h>
18 #include <AP_TimestampSet.h>
19 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif /* __cplusplus */
27 
28 
29 /*
30  * Forward declare some structures
31  */
32 struct AP_SemanticMapper;
33 
34 
42 typedef enum {
52 
53 
66 
84 
98  AP_SemanticMapperError (*parseApamaEvent) (struct AP_SemanticMapper* mapper, const AP_char8* eventString, const AP_char8* channelString, AP_NormalisedEvent*** returnArray);
99 
113  AP_SemanticMapperError (*freeNormalizedArray) (struct AP_SemanticMapper* mapper, AP_NormalisedEvent** eventArray, AP_bool hasContent);
114 
131  AP_SemanticMapperError (*createApamaEventStrings) (struct AP_SemanticMapper* mapper, AP_NormalisedEvent* event, AP_char8*** returnArrayPtr, AP_char8*** channelArrayPtr);
132 
146  AP_SemanticMapperError (*freeStringArray) (struct AP_SemanticMapper* mapper, AP_char8** eventArray, AP_bool hasContent);
147 
158  const AP_char8* (*getLastError)(struct AP_SemanticMapper* mapper);
159 };
160 
161 
175 
179  void* reserved;
180 
186 
187 };
188 typedef struct AP_SemanticMapper AP_SemanticMapper;
189 
196 AP_IAFCORE_API AP_SemanticMapper *ap_getSemanticMapper();
197 
198 #ifdef __cplusplus
199 } /* extern "C" */
200 #endif /* __cplusplus */
201 
202 
203 #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:98
Normalised Event.
AP_SemanticMapperError(* sendNormalisedEvent)(struct AP_SemanticMapper *mapper, AP_NormalisedEvent *event, AP_TimestampSet *timeStamp)
sendNormalisedEvent
Definition: SemanticMapper.h:83
AP_SemanticMapperError(* createApamaEventStrings)(struct AP_SemanticMapper *mapper, AP_NormalisedEvent *event, AP_char8 ***returnArrayPtr, AP_char8 ***channelArrayPtr)
createApamaEventStrings
Definition: SemanticMapper.h:131
void * reserved
Pointer to private internal data.
Definition: SemanticMapper.h:179
AP_SemanticMapperError(* freeStringArray)(struct AP_SemanticMapper *mapper, AP_char8 **eventArray, AP_bool hasContent)
freeStringArray
Definition: SemanticMapper.h:146
AP_SemanticMapper_Functions.
Definition: SemanticMapper.h:65
struct AP_SemanticMapper_Functions * functions
Function table of Semantic Mapper operations.
Definition: SemanticMapper.h:185
AP_SemanticMapperError
AP_SemanticMapperError.
Definition: SemanticMapper.h:42
AP_SemanticMapperError(* freeNormalizedArray)(struct AP_SemanticMapper *mapper, AP_NormalisedEvent **eventArray, AP_bool hasContent)
freeNormalizedArray
Definition: SemanticMapper.h:113
AP_IAFCORE_API AP_SemanticMapper * ap_getSemanticMapper()
ap_getSemanticMapper
Couldn't queue converted event for injection into Engine.
Definition: SemanticMapper.h:50
AP_NormalisedEvent.
Definition: NormalisedEvent.h:454
Hires Timestamps.
Couldn't convert customer event to Apama event.
Definition: SemanticMapper.h:48
Everything is fine.
Definition: SemanticMapper.h:44
AP_SemanticMapper.
Definition: SemanticMapper.h:174
AP_TimestampSet.
Definition: AP_TimestampSet.h:306
Some unspecified internal error occurred.
Definition: SemanticMapper.h:46