-
Notifications
You must be signed in to change notification settings - Fork 0
/
DictionaryAttribute.h
51 lines (45 loc) · 1.94 KB
/
DictionaryAttribute.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
#ifndef __DictionaryAttribute_H
#define __DictionaryAttribute_H
#include <stdbool.h>
#include "KMF4C.h"
typedef struct _DictionaryAttribute DictionaryAttribute;
typedef struct _TypedElement TypedElement;
typedef struct _Visitor Visitor;
typedef char* (*fptrDicAttrMetaClassName)(DictionaryAttribute*);
typedef char* (*fptrDicAttrInternalGetKey)(DictionaryAttribute*);
typedef void (*fptrDeleteDicAttr)(void*);
typedef void (*fptrVisitAttrDicAttr)(void*, char*, Visitor*);
typedef void (*fptrVisitRefsDicAttr)(void*, char*, Visitor*);
typedef void* (*fptrFindByPathDicAttr)(char*, DictionaryAttribute*);
typedef struct _DictionaryAttribute {
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;
TypedElement* super;
bool optional;
bool state;
char *datatype;
bool fragmentDependant;
char *defaultValue;
} DictionaryAttribute;
TypedElement* newPoly_DictionaryAttribute(void);
DictionaryAttribute* new_DictionaryAttribute(void);
void deletePoly_DictionaryAttribute(void* const this);
void delete_DictionaryAttribute(void* const this);
char* DictionaryAttribute_internalGetKey(void* const this);
char* DictionaryAttribute_metaClassName(void* const this);
void DictionaryAttribute_VisitAttributes(void* const this, char* parent, Visitor* visitor, bool recursive);
void DictionaryAttribute_VisitPathAttributes(void* const this, char* parent, Visitor* visitor, bool recursive);
void DictionaryAttribute_VisitReferences(void* const this, char* parent, Visitor* visitor, bool recursive);
void DictionaryAttribute_VisitPathReferences(void* const this, char* parent, Visitor* visitor, bool recursive);
void* DictionaryAttribute_FindByPath(char* attribute, void* const this);
#endif /* __DictionaryAttribute_H */