Back to index

salome-paravis  6.5.0
Functions | Variables
getwrapclasses Namespace Reference

Functions

def collect_dic

Variables

list classeslistsm = []
list classeslistvtk = []
tuple l1 = dir()
tuple l2 = dir()
tuple dic = dict()
list non_wrap_list = ["vtkVariant", "vtkTimeStamp"]
 pv_classes_new = classeslistsm
 pv_classes_cur = pv_classes_new
list filename = sys.argv[1]
 ignore non wrappable classes
list c_new = []
tuple f = open(filename)
tuple m = re.match('\s*class\s+(vtk\w+)\s*;',line)
tuple cn = m.group(1)
tuple cm = re.findall('public\s+(vtk\w+)',line)
list pv_classes_sort = []
 do not extract Call Back classes
tuple wf_txt = open('wrapfiles.txt','w')

Function Documentation

Definition at line 103 of file getwrapclasses.py.

00103 
00104 def collect_dic(cc):
00105     ret=[]
00106     for c in cc:
00107         if c not in dic.keys():
00108             continue
00109         if len(dic[c][1]) and dic[c][0] == 0:
00110              ret+=collect_dic(dic[c][1])
00111         if dic[c][0] == 0:
00112             ret.append(c)
00113             dic[c][0]=1
00114     return ret
00115 
00116 pv_classes_sort=collect_dic(dic.keys())
00117 
00118 wf_str=""
00119 if(os.path.exists('wrapfiles.txt')):
00120     wf_txt=open('wrapfiles.txt','r')
00121     strs=wf_txt.readlines()
00122     wf_txt.close()
00123     for s in strs:
00124         wf_str+=s
00125 str=""

Here is the call graph for this function:


Variable Documentation

Definition at line 58 of file getwrapclasses.py.

Definition at line 24 of file getwrapclasses.py.

Definition at line 25 of file getwrapclasses.py.

tuple getwrapclasses.cm = re.findall('public\s+(vtk\w+)',line)

Definition at line 86 of file getwrapclasses.py.

tuple getwrapclasses.cn = m.group(1)

Definition at line 67 of file getwrapclasses.py.

tuple getwrapclasses.dic = dict()

Definition at line 44 of file getwrapclasses.py.

tuple getwrapclasses.f = open(filename)

Definition at line 59 of file getwrapclasses.py.

list getwrapclasses.filename = sys.argv[1]

ignore non wrappable classes

Definition at line 56 of file getwrapclasses.py.

tuple getwrapclasses.l1 = dir()

Definition at line 32 of file getwrapclasses.py.

tuple getwrapclasses.l2 = dir()

Definition at line 38 of file getwrapclasses.py.

tuple getwrapclasses.m = re.match('\s*class\s+(vtk\w+)\s*;',line)

Definition at line 65 of file getwrapclasses.py.

list getwrapclasses.non_wrap_list = ["vtkVariant", "vtkTimeStamp"]

Definition at line 46 of file getwrapclasses.py.

Definition at line 50 of file getwrapclasses.py.

Definition at line 48 of file getwrapclasses.py.

do not extract Call Back classes

Definition at line 101 of file getwrapclasses.py.

tuple getwrapclasses.wf_txt = open('wrapfiles.txt','w')

Definition at line 133 of file getwrapclasses.py.