-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPortTypeRef.h
68 lines (62 loc) · 2.81 KB
/
PortTypeRef.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
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef __PortTypeRef_H
#define __PortTypeRef_H
#include <stdbool.h>
#include "hashmap.h"
#include "KMF4C.h"
typedef struct _PortTypeRef PortTypeRef;
typedef struct _NamedElement NamedElement;
typedef struct _PortType PortType;
typedef struct _PortTypeMapping PortTypeMapping;
typedef struct _Visitor Visitor;
typedef char* (*fptrPortTypeRefMetaClassName)(PortTypeRef*);
typedef char* (*fptrPortTypeRefInternalGetKey)(PortTypeRef*);
typedef PortTypeMapping* (*fptrPortTypeRefFindMappingsByID)(PortTypeRef*, char*);
typedef void (*fptrPortTypeRefAddRef)(PortTypeRef*, PortType*);
typedef void (*fptrPortTypeRefAddMappings)(PortTypeRef*, PortTypeMapping*);
typedef void (*fptrPortTypeRefRemoveRef)(PortTypeRef*, PortType*);
typedef void (*fptrPortTypeRefRemoveMappings)(PortTypeRef*, PortTypeMapping*);
typedef void (*fptrDeletePortTypeRef)(PortTypeRef*);
typedef void (*fptrVisitAttrPortTypeRef)(void*, char*, Visitor*, bool);
typedef void (*fptrVisitRefsPortTypeRef)(void*, char*, Visitor*);
typedef void* (*fptrFindByPathPortTypeRef)(char*, PortTypeRef*);
typedef struct _PortTypeRef {
void *pDerivedObj;
char *eContainer;
char *path;
map_t refs;
fptrKMFMetaClassName metaClassName;
fptrKMFInternalGetKey internalGetKey;
fptrVisitAttr VisitAttributes;
fptrVisitAttr VisitPathAttributes;
fptrVisitRefs VisitReferences;
fptrVisitRefs VisitPathReferences;
fptrFindByPath FindByPath;
fptrDelete Delete;
NamedElement* super;
bool optional;
bool noDependency;
PortType *ref;
map_t mappings;
fptrPortTypeRefFindMappingsByID FindMappingsByID;
fptrPortTypeRefAddRef AddRef;
fptrPortTypeRefAddMappings AddMappings;
fptrPortTypeRefRemoveRef RemoveRef;
fptrPortTypeRefRemoveMappings RemoveMappings;
} PortTypeRef;
NamedElement* newPoly_PortTypeRef(void);
PortTypeRef* new_PortTypeRef(void);
char* PortTypeRef_metaClassName(void * const this);
char* PortTypeRef_internalGetKey(void * const this);
PortTypeMapping* PortTypeRef_FindMappingsByID(PortTypeRef* const this, char* id);
void PortTypeRef_AddRef(PortTypeRef* const this, PortType* ptr);
void PortTypeRef_AddMappings(PortTypeRef* const this, PortTypeMapping* ptr);
void PortTypeRef_RemoveRef(PortTypeRef* const this, PortType* ptr);
void PortTypeRef_RemoveMappings(PortTypeRef* const this, PortTypeMapping* ptr);
void deletePoly_PortTypeRef(void * const this);
void delete_PortTypeRef(void * const this);
void PortTypeRef_VisitAttributes(void* const this, char* parent, Visitor* visitor, bool recursive);
void PortTypeRef_VisitPathAttributes(void* const this, char* parent, Visitor* visitor, bool recursive);
void PortTypeRef_VisitReferences(void* const this, char* parent, Visitor* visitor, bool recursive);
void PortTypeRef_VisitPathReferences(void* const this, char* parent, Visitor* visitor, bool recursive);
void* PortTypeRef_FindByPath(char* attribute, void * const this);
#endif /* __PortTypeRef_H */