draftlibs::dxfReader::StateMachine Class Reference

List of all members.

Public Member Functions

def __init__
def add_state
def run
def set_start

Public Attributes

 endStates
 handlers
 startState

Detailed Description

(finite) State Machine from the great David Mertz's great Charming Python article.

Definition at line 67 of file dxfReader.py.


Member Function Documentation

def draftlibs::dxfReader::StateMachine::__init__ (   self  ) 

Definition at line 70 of file dxfReader.py.

def draftlibs::dxfReader::StateMachine::add_state (   self,
  handler,
  end_state = 0 
)
All states and handlers are functions which return
a state and a cargo.

Definition at line 75 of file dxfReader.py.

def draftlibs::dxfReader::StateMachine::run (   self,
  cargo = None 
)

Definition at line 86 of file dxfReader.py.

def draftlibs::dxfReader::StateMachine::set_start (   self,
  handler 
)
Sets the starting handler function.

Definition at line 81 of file dxfReader.py.


Member Data Documentation

Definition at line 73 of file dxfReader.py.

Definition at line 71 of file dxfReader.py.

Definition at line 72 of file dxfReader.py.


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

Generated on Wed Nov 23 19:01:54 2011 for FreeCAD by  doxygen 1.6.1