-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAbstractTypeDefinition.h
56 lines (50 loc) · 2.64 KB
/
AbstractTypeDefinition.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef __AbstractTypeDefinition_H
#define __AbstractTypeDefinition_H
/*#include "KevoreeModelHandlerService.h"*/
#include "hashmap.h"
typedef struct _AbstractTypeDefinition AbstractTypeDefinition;
typedef struct _KevoreeModelHandlerService KevoreeModelHandlerService;
typedef struct _Bootstraper Bootstraper;
typedef struct _KMFContainer KMFContainer;
typedef void (*fptrStart)(AbstractTypeDefinition*);
typedef void (*fptrStop)(AbstractTypeDefinition*);
typedef void (*fptrUpdate)(AbstractTypeDefinition*, int);
typedef void (*fptrSetModelService)(AbstractTypeDefinition*, KevoreeModelHandlerService*);
typedef KevoreeModelHandlerService *(*fptrGetModelService)(AbstractTypeDefinition*);
typedef void (*fptrSetBootStrapperService)(AbstractTypeDefinition*, Bootstraper*);
typedef Bootstraper *(*fptrGetBootStrapperService)(AbstractTypeDefinition*);
typedef void (*fptrSetPath)(AbstractTypeDefinition*, char*);
typedef void *(*fptrGetModelElement)(AbstractTypeDefinition*);
typedef void (*fptrUpdateParam)(AbstractTypeDefinition*, char*, char*);
typedef void (*fptrATDDelete)(AbstractTypeDefinition*);
typedef struct _AbstractTypeDefinition {
void *pDerivedObj;
KevoreeModelHandlerService *service;
Bootstraper *bootstrapService;
char *path;
map_t params;
fptrStart start;
fptrStop stop;
fptrUpdate update;
fptrSetModelService setModelService;
fptrGetModelService getModelService;
fptrSetBootStrapperService setBootStrapperService;
fptrGetBootStrapperService getBootStrapperService;
fptrSetPath setPath;
fptrGetModelElement getModelElement;
fptrUpdateParam updateParam;
fptrATDDelete delete;
} AbstractTypeDefinition;
AbstractTypeDefinition *new_AbstractTypeDefinition(void);
void delete_AbstractTypeDefinition(AbstractTypeDefinition *const this);
void AbstractTypeDefinition_start(AbstractTypeDefinition *const this);
void AbstractTypeDefinition_stop(AbstractTypeDefinition *const this);
void AbstractTypeDefinition_update(AbstractTypeDefinition *const this, int value);
void AbstractTypeDefinition_setModelService(AbstractTypeDefinition *const this, KevoreeModelHandlerService *handler);
KevoreeModelHandlerService *AbstractTypeDefinition_getModelService(AbstractTypeDefinition *const this);
void AbstractTypeDefinition_setBootStrapperService(AbstractTypeDefinition *const this, Bootstraper *bootstrapService);
Bootstraper *AbstractTypeDefinition_getBootStrapperService(AbstractTypeDefinition *const this);
void AbstractTypeDefinition_setPath(AbstractTypeDefinition *const this, char *path);
void *AbstractTypeDefinition_getModelElement(AbstractTypeDefinition *const this);
void AbstractTypeDefinition_updateParam(AbstractTypeDefinition *const this, char *key, char *value);
#endif