IUF-SDK-3
Interventional Ultrasound Library
iufHistoryNodeADT.h
Go to the documentation of this file.
1 #ifndef IUFLIBRARY_IUFHISTORYNODEADT_H
2 #define IUFLIBRARY_IUFHISTORYNODEADT_H
3 // ADT
5 {
6 
7  char *pId;
8  char *pType;
13  void * instanceData;
15 
16 } ;
17 
18 // SWIG binding
19 #ifdef SWIG
20 
21 %extend IufHistoryNode { // Attach these functions to struct Vector
22  IufHistoryNode(char *nodeType) {
23  return iufHistoryNodeCreate(nodeType);
24  }
25 
26  ~IufHistoryNode() {
27  iufHistoryNodeDelete($self);
28  }
29 
30  char *Type()
31  {
32  return iufHistoryNodeGetType($self);
33  }
34 
35  int NumParams()
36  {
37  return iufHistoryNodeGetNumParams($self);
38  }
39 
40  int NumParents()
41  {
42  return iufHistoryNodeGetNumParents($self);
43  }
44 
45  char *__str__() {
46  static char temp[256];
47  sprintf(temp, "IufHistoryNode [%s]\n", $self->pType);
48  return &temp[0];
49  }
50 };
51 
52 #endif
53 
54 #endif // IUFLIBRARY_IUFHISTORYNODEADT_H
Definition: iufHistoryNodeList.c:8
int iufHistoryNodeDelete(iuhn_t historyNode)
Delete a history node.
Definition: iufHistoryNode.c:47
Definition: iufHistoryNodeADT.h:4
iupad_t parameters
Definition: iufHistoryNodeADT.h:12
iuhn_t iufHistoryNodeCreate(char *pNodeType)
Creates a history node of the type described by the string pNodeType.
Definition: iufHistoryNode.c:35
int numberOfParents
Definition: iufHistoryNodeADT.h:9
Definition: iufParameterDictADT.h:14
IUF_BOOL deepDelete
Definition: iufHistoryNodeADT.h:14
char * iufHistoryNodeGetType(iuhn_t historyNode)
Gets the label of the node.
Definition: iufHistoryNode.c:185
int iufHistoryNodeGetNumParams(iuhn_t historyNode)
Gets the number of parameters that a node has.
Definition: iufHistoryNode.c:163
int iufHistoryNodeGetNumParents(iuhn_t historyNode)
Gets the number of parents that a node has.
Definition: iufHistoryNode.c:153
void * instanceData
Definition: iufHistoryNodeADT.h:13
char * pType
Definition: iufHistoryNodeADT.h:8
char * pId
Definition: iufHistoryNodeADT.h:7
int IUF_BOOL
Definition: iufTypes.h:8
iuhnl_t parents
Definition: iufHistoryNodeADT.h:10
int numberOfParameters
Definition: iufHistoryNodeADT.h:11