Configurator
Public Member Functions | List of all members
data_structures.Style Class Reference

Output formatting Style. More...

Public Member Functions

def __init__
 
def __format__
 
def file_name_set
 
def routine_name
 
def indent_adjust
 

Detailed Description

Output formatting Style.

The Style class controls the output style of C, C++, Python, etc.  

This class contains all of the information that controls output formatting. This is primarily used for controlling the look of generated C, C++, and Python code.

Constructor & Destructor Documentation

def data_structures.Style.__init__ (   self,
  application 
)
The Style class controls the output style of C, C++, Python, etc.  

Member Function Documentation

def data_structures.Style.__format__ (   self,
  fmt 
)
Style: Initialize *self* object. 
def data_structures.Style.routine_name (   self,
  name 
)
Style: Save current file name in *self*. 

Member Data Documentation

string data_structures.Style.result " "
static
Style: Format *self* controlled by *fmt*.
If *fmt* is 'i', return the current indent string.
If *fmt* is 'b', return new block indent.
if *fmt* is 'e', return an end block indent.
if *fmt* is 'E', return an end block indent with a semicolon.
if *fmt* is 'f', return the current file name.  
string data_structures.Style.result_name ""
static
Style: Return *name* in the style specified by *self*. 

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