-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNodeLink.h
58 lines (52 loc) · 2.32 KB
/
NodeLink.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
#ifndef __NodeLink_H
#define __NodeLink_H
#include "hashmap.h"
#include "KMF4C.h"
typedef struct _NodeLink NodeLink;
typedef struct _NetworkProperty NetworkProperty;
typedef struct _Visitor Visitor;
typedef char* (*fptrNodeLinkMetaClassName)(NodeLink*);
typedef char* (*fptrNodeLinkInternalGetKey)(NodeLink*);
typedef void (*fptrNodeLinkAddNetworkProperties)(NodeLink*, NetworkProperty*);
typedef void (*fptrNodeLinkRemoveNetworkProperties)(NodeLink*, NetworkProperty*);
typedef NetworkProperty* (*fptrNodeLinkFindNetworkPropertiesByID)(NodeLink*, char*);
typedef void (*fptrDeleteNodeLink)(NodeLink*);
typedef void (*fptrVisitAttrNodeLink)(void*, char*, Visitor*);
typedef void (*fptrVisitRefsNodeLink)(void*, char*, Visitor*);
typedef void* (*fptrFindByPathNodeLink)(char*, NodeLink*);
typedef struct _NodeLink {
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;
char *networkType;
int estimatedRate;
char *lastCheck;
char *zoneID;
char generated_KMF_ID[9];
map_t networkProperties;
fptrNodeLinkFindNetworkPropertiesByID FindNetworkPropertiesByID;
fptrNodeLinkAddNetworkProperties AddNetworkProperties;
fptrNodeLinkRemoveNetworkProperties RemoveNetworkProperties;
} NodeLink;
NodeLink* new_NodeLink(void);
char* NodeLink_internalGetKey(void * const this);
NetworkProperty* NodeLink_FindNetworkPropertiesByID(NodeLink* const this, char* id);
void NodeLink_AddNetworkProperties(NodeLink* const this, NetworkProperty *ptr);
void NodeLink_RemoveNetworkProperties(NodeLink* const this, NetworkProperty *ptr);
char* NodeLink_metaClassName(void * const this);
void delete_NodeLink(void * const this);
void NodeLink_VisitAttributes(void* const this, char* parent, Visitor* visitor, bool recursive);
void NodeLink_VisitPathAttributes(void* const this, char* parent, Visitor* visitor, bool recursive);
void NodeLink_VisitReferences(void* const this, char* parent, Visitor* visitor, bool recursive);
void NodeLink_VisitPathReferences(void* const this, char* parent, Visitor* visitor, bool recursive);
void* NodeLink_FindByPath(char* attribute, void * const this);
#endif /* __NodeLink_H */