Public Member Functions | Private Member Functions | Private Attributes
rtshell.modmgr.ModuleMgr Class Reference

ModuleMgr class - keeps track of loaded extra modules and provides evaluation of Python expressions. More...

List of all members.

Public Member Functions

def __init__
def evaluate
def find_class
def load_mod
def load_mods
def load_mods_and_poas
def loaded_mod_names

Private Member Functions

def _add_paths
def _auto_import
def _repl_mod_name

Private Attributes

 _mods
 _verb

Detailed Description

ModuleMgr class - keeps track of loaded extra modules and provides evaluation of Python expressions.

Definition at line 77 of file modmgr.py.


Constructor & Destructor Documentation

def rtshell.modmgr.ModuleMgr.__init__ (   self,
  verbose = False,
  paths = [],
  args,
  kwargs 
)

Definition at line 78 of file modmgr.py.


Member Function Documentation

def rtshell.modmgr.ModuleMgr._add_paths (   self,
  paths = [] 
) [private]

Definition at line 84 of file modmgr.py.

def rtshell.modmgr.ModuleMgr._auto_import (   self,
  expr 
) [private]
Tries to import all module names found in an expression.

A failure to import a module will cause a warning, not an error.

Definition at line 179 of file modmgr.py.

def rtshell.modmgr.ModuleMgr._repl_mod_name (   self,
  expr 
) [private]
Replace the name of a module.

Replaces a reference to a module in a string with its reference in
the modules array.

Definition at line 205 of file modmgr.py.

def rtshell.modmgr.ModuleMgr.evaluate (   self,
  expr 
)

Definition at line 90 of file modmgr.py.

def rtshell.modmgr.ModuleMgr.find_class (   self,
  name 
)
Find a class constructor in one of the modules.

The first matching class's constructor will be returned.

@param name The name of the class to search for.

Definition at line 100 of file modmgr.py.

def rtshell.modmgr.ModuleMgr.load_mod (   self,
  mod 
)
Load a module.

Definition at line 147 of file modmgr.py.

def rtshell.modmgr.ModuleMgr.load_mods (   self,
  mods 
)
Load a list of modules.

@param mods The module names, as a list of strings.

Definition at line 152 of file modmgr.py.

def rtshell.modmgr.ModuleMgr.load_mods_and_poas (   self,
  mods 
)
Load a set of modules and their POA modules.

@param mods The module names, as a list of strings.

Definition at line 160 of file modmgr.py.

Definition at line 176 of file modmgr.py.


Member Data Documentation

Definition at line 78 of file modmgr.py.

Definition at line 78 of file modmgr.py.


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


rtshell
Author(s): Geoffrey Biggs
autogenerated on Fri Aug 28 2015 12:55:12