zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
sources.SourceBlock Class Reference

SOURCE BLOCK CLASS. More...

Public Member Functions

def __init__
 
def dump
 
def location
 

Public Attributes

 content
 
 filename
 
 format
 
 lineno
 
 lines
 
 processor
 

Detailed Description

SOURCE BLOCK CLASS.

A SourceProcessor is in charge of reading a C source file and decomposing it into a series of different "SourceBlocks". each one of these blocks can be made of the following data:

  • A documentation comment block that starts with "/**" and whose exact format will be discussed later
  • normal sources lines, including comments

the important fields in a text block are the following ones:

self.lines : a list of text lines for the corresponding block

self.content : for documentation comment blocks only, this is the block content that has been "unboxed" from its decoration. This is None for all other blocks (i.e. sources or ordinary comments with no starting markup tag)

Definition at line 201 of file sources.py.

Constructor & Destructor Documentation

def sources.SourceBlock.__init__ (   self,
  processor,
  filename,
  lineno,
  lines 
)

Definition at line 203 of file sources.py.

Member Function Documentation

def sources.SourceBlock.location (   self)

Definition at line 233 of file sources.py.

References sources.SourceBlock.filename, and sources.SourceBlock.lineno.

Member Data Documentation

sources.SourceBlock.content

Definition at line 209 of file sources.py.

Referenced by sources.SourceBlock.dump().

sources.SourceBlock.filename
sources.SourceBlock.lines
sources.SourceBlock.processor

Definition at line 204 of file sources.py.


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