def run(self):
for node in self.document:
self.process(node)
- print "\nnumber of functions processed ===> ",len(self.objects)
def process(self, node):
node_type = node.attributes['kind']
if node_type == 'function':
data = self._process_function_node(node)
else:
- print 'not processing node: %s' % node_type
return
if 'name' in data and data['name'] in exclude_funcs:
def _process_function_node(self, node):
f_name = node.children['name'][0].getContent()
- print f_name
f_Id = node.attributes['id']
f_ret_type = self._process_type_node(node.children['type'][0])
f_brief = node.children['briefdescription'][0].getContent()
if 'name' in data and data['name'] in exclude_types:
continue
result.append(data)
- print "\nnumber of types processed ==> " , len(result)
return result
def _process_typedef_node(self, node):
t_name = node.xpath('./name/text()')[0]
- print t_name
-
t_Id = node.attrib['id']
t_definition = node.xpath('./definition/text()')[0]
t_type = self._process_type_node(node.xpath("./type")[0])
def _process_define_node(self, node):
d_name = node.xpath('./name/text()')[0]
- print d_name
d_initializer = ''
d_type = ''
d_signature = ''
super(DoxyTypesTest,self).__init__(xmlpath)
def run_tests(self):
- print "Process typedef's"
self.test_process_typedef_node()
- print "Process define's"
self.test_process_define_node()
def test_run(self):