Visualization Library 2.0.0-b5
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
SOURCE PROCESSOR CLASS. More...
Public Member Functions | |
def | __init__ (self) |
def | reset (self) |
def | parse_file (self, filename) |
def | process_normal_line (self, line) |
def | add_block_lines (self) |
def | dump (self) |
Public Attributes | |
blocks | |
filename | |
format | |
lines | |
lineno | |
SOURCE PROCESSOR CLASS.
The SourceProcessor is in charge of reading a C source file and decomposing it into a series of different "SourceBlock" objects.
each one of these blocks can be made of the following data:
Definition at line 270 of file sources.py.
def sources.SourceProcessor.__init__ | ( | self | ) |
initialize a source processor
Definition at line 272 of file sources.py.
def sources.SourceProcessor.add_block_lines | ( | self | ) |
add the current accumulated lines and create a new block
Definition at line 332 of file sources.py.
References formatter.Formatter.blocks, internal_state.blocks, sources.SourceProcessor.blocks, content.DocSection.blocks, sources.SourceBlock.filename, sources.SourceProcessor.filename, PCF_TableRec_.format, GXV_lcar_DataRec_.format, GXV_opbd_DataRec_.format, TT_CMap_ClassRec_.format, TT_CMapInfo_.format, CFF_EncodingRec_.format, CFF_CharsetRec_.format, bdf_property_t_.format, FT_GlyphRec_.format, CFF_FDSelectRec_.format, sources.SourceBlock.format, TT_NameTableRec_.format, sources.SourceProcessor.format, PFR_GlyphRec_.format, FTC_SBitRec_.format, FT_GlyphSlotRec_.format, sources.SourceBlock.lineno, sources.SourceProcessor.lineno, content.DocCode.lines, content.DocPara.lines, sources.SourceBlock.lines, and sources.SourceProcessor.lines.
Referenced by sources.SourceProcessor.process_normal_line().
def sources.SourceProcessor.dump | ( | self | ) |
print all blocks in a processor
Definition at line 342 of file sources.py.
References formatter.Formatter.blocks, internal_state.blocks, sources.SourceProcessor.blocks, and content.DocSection.blocks.
def sources.SourceProcessor.parse_file | ( | self, | |
filename | |||
) |
parse a C source file, and add its blocks to the processor's list
Definition at line 284 of file sources.py.
References sources.SourceBlock.filename, sources.SourceProcessor.filename, PCF_TableRec_.format, GXV_opbd_DataRec_.format, GXV_lcar_DataRec_.format, TT_CMap_ClassRec_.format, TT_CMapInfo_.format, CFF_EncodingRec_.format, CFF_CharsetRec_.format, FT_GlyphRec_.format, bdf_property_t_.format, CFF_FDSelectRec_.format, sources.SourceBlock.format, TT_NameTableRec_.format, sources.SourceProcessor.format, PFR_GlyphRec_.format, FTC_SBitRec_.format, FT_GlyphSlotRec_.format, sources.SourceProcessor.reset(), T1_Hints_FuncsRec_.reset, and content.ContentProcessor.reset().
def sources.SourceProcessor.process_normal_line | ( | self, | |
line | |||
) |
process a normal line and check whether it is the start of a new block
Definition at line 322 of file sources.py.
References sources.SourceProcessor.add_block_lines(), PCF_TableRec_.format, GXV_lcar_DataRec_.format, GXV_opbd_DataRec_.format, TT_CMap_ClassRec_.format, TT_CMapInfo_.format, CFF_EncodingRec_.format, CFF_CharsetRec_.format, FT_GlyphRec_.format, bdf_property_t_.format, CFF_FDSelectRec_.format, sources.SourceBlock.format, TT_NameTableRec_.format, sources.SourceProcessor.format, PFR_GlyphRec_.format, FTC_SBitRec_.format, FT_GlyphSlotRec_.format, sources.SourceBlock.lineno, sources.SourceProcessor.lineno, content.DocCode.lines, content.DocPara.lines, sources.SourceBlock.lines, and sources.SourceProcessor.lines.
def sources.SourceProcessor.reset | ( | self | ) |
reset a block processor, clean all its blocks
Definition at line 279 of file sources.py.
References formatter.Formatter.blocks, internal_state.blocks, sources.SourceProcessor.blocks, content.DocSection.blocks, PCF_TableRec_.format, GXV_lcar_DataRec_.format, GXV_opbd_DataRec_.format, TT_CMap_ClassRec_.format, TT_CMapInfo_.format, CFF_EncodingRec_.format, CFF_CharsetRec_.format, bdf_property_t_.format, FT_GlyphRec_.format, CFF_FDSelectRec_.format, sources.SourceBlock.format, TT_NameTableRec_.format, sources.SourceProcessor.format, PFR_GlyphRec_.format, FTC_SBitRec_.format, and FT_GlyphSlotRec_.format.
Referenced by sources.SourceProcessor.parse_file().
sources.SourceProcessor.blocks |
Definition at line 274 of file sources.py.
Referenced by sources.SourceProcessor.add_block_lines(), sources.SourceProcessor.dump(), and sources.SourceProcessor.reset().
sources.SourceProcessor.filename |
Definition at line 275 of file sources.py.
Referenced by sources.SourceProcessor.add_block_lines(), and sources.SourceProcessor.parse_file().
sources.SourceProcessor.format |
Definition at line 276 of file sources.py.
Referenced by sources.SourceProcessor.add_block_lines(), sources.SourceProcessor.parse_file(), sources.SourceProcessor.process_normal_line(), and sources.SourceProcessor.reset().
sources.SourceProcessor.lineno |
Definition at line 292 of file sources.py.
Referenced by sources.SourceProcessor.add_block_lines(), and sources.SourceProcessor.process_normal_line().
sources.SourceProcessor.lines |
Definition at line 277 of file sources.py.
Referenced by sources.SourceProcessor.add_block_lines(), and sources.SourceProcessor.process_normal_line().
Visualization Library 2.0.0-b5 Reference Documentation
Updated on Mon Feb 10 2020 02:45:02.
© Copyright Michele Bosi. All rights reserved.