Public Member Functions | Static Private Attributes
wiimote.WIIMote._WiiCallbackStack Class Reference

List of all members.

Public Member Functions

def __init__
def pause
def pop
def push
def resume
def setcallback

Static Private Attributes

list _functionStack = []
 _paused = False
 _singletonInstance = None
 _wm = None

Detailed Description

Class organizes installation and removal/restoration
of callback functions for the Wii driver to use. 
Only one instance of this class is allowed. Additional
instantiations generate a CallbackStackMultInstError.

A stack discipline is imposed. Operations:

   - push(<callBackFunc>)        # New function becomes the active
                                 # callback immediately
   - pop() -> <oldCallBackFunc>  # If another function is still on
                                     # the stack, it immediately becomes
                                     # the active callback. If callback
                                   # is paused, resume() is forced.
   - pause()                  # Callbacks are temporarily turned off
   - paused() -> True/False
   - resume(sloppy=True)      # If sloppy=False, resuming when
                                   # callbacks are not paused throws an
                                   # exception.  If sloppy=True, the call is
                                   # a no-op

Definition at line 830 of file

Constructor & Destructor Documentation

def wiimote.WIIMote._WiiCallbackStack.__init__ (   self,
  sloppy = True 

Definition at line 864 of file

Member Function Documentation

WIIMote callbacks are temporarily stopped.

Definition at line 905 of file

Wiimote callback function is popped off the stack. New top of stack 
becomes the new callback function. Old function is returned.

Definition at line 889 of file

def wiimote.WIIMote._WiiCallbackStack.push (   self,
Given function becomes the new WIImote callback function, shadowing 
the function that is currently on the stack

Definition at line 877 of file

def wiimote.WIIMote._WiiCallbackStack.resume (   self,
  sloppy = True 
Resume the (presumably) previously paused WIIMote callback functions.
If sloppy is True, this method won't complain if pause was not 
called earlier. If sloppy is False, an exception is raised in 
that case.

Definition at line 915 of file

Tell WIIMote which function to call when reporting status.

Definition at line 938 of file

Member Data Documentation

Definition at line 853 of file

Definition at line 855 of file

Definition at line 854 of file

wiimote::WIIMote._WiiCallbackStack::_wm = None [static, private]

Definition at line 857 of file

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

Author(s): Andreas Paepcke and Melonee Wise
autogenerated on Sat Dec 28 2013 17:06:51