QPanda3  0.1.0
Supported by OriginQ
Loading...
Searching...
No Matches
pyqpanda3.profiling.gprof2dot.XmlTokenizer Class Reference

Expat based XML tokenizer. More...

Public Member Functions

 __init__ (self, fp, skip_ws=True)
 
 handle_element_start (self, name, attributes)
 
 handle_element_end (self, name)
 
 handle_character_data (self, data)
 
 finish_character_data (self)
 
 next (self)
 
 pos (self)
 

Public Attributes

 fp = fp
 
list tokens = []
 
int index = 0
 
bool final = False
 
 skip_ws = skip_ws
 
int character_pos = 0, 0
 
str character_data = ''
 
 parser = xml.parsers.expat.ParserCreate()
 
int character_data = self.character_pos
 

Detailed Description

Expat based XML tokenizer.

Constructor & Destructor Documentation

◆ __init__()

pyqpanda3.profiling.gprof2dot.XmlTokenizer.__init__ ( self,
fp,
skip_ws = True )

Member Function Documentation

◆ finish_character_data()

pyqpanda3.profiling.gprof2dot.XmlTokenizer.finish_character_data ( self)

◆ handle_character_data()

pyqpanda3.profiling.gprof2dot.XmlTokenizer.handle_character_data ( self,
data )

◆ handle_element_end()

pyqpanda3.profiling.gprof2dot.XmlTokenizer.handle_element_end ( self,
name )

◆ handle_element_start()

pyqpanda3.profiling.gprof2dot.XmlTokenizer.handle_element_start ( self,
name,
attributes )

◆ next()

pyqpanda3.profiling.gprof2dot.XmlTokenizer.next ( self)

◆ pos()

pyqpanda3.profiling.gprof2dot.XmlTokenizer.pos ( self)

Member Data Documentation

◆ character_data [1/2]

str pyqpanda3.profiling.gprof2dot.XmlTokenizer.character_data = ''

◆ character_data [2/2]

int pyqpanda3.profiling.gprof2dot.XmlTokenizer.character_data = self.character_pos

◆ character_pos

pyqpanda3.profiling.gprof2dot.XmlTokenizer.character_pos = 0, 0

◆ final

pyqpanda3.profiling.gprof2dot.XmlTokenizer.final = False

◆ fp

pyqpanda3.profiling.gprof2dot.XmlTokenizer.fp = fp

◆ index

int pyqpanda3.profiling.gprof2dot.XmlTokenizer.index = 0

◆ parser

pyqpanda3.profiling.gprof2dot.XmlTokenizer.parser = xml.parsers.expat.ParserCreate()

◆ skip_ws

pyqpanda3.profiling.gprof2dot.XmlTokenizer.skip_ws = skip_ws

◆ tokens

list pyqpanda3.profiling.gprof2dot.XmlTokenizer.tokens = []

The documentation for this class was generated from the following file: