Loadable.Loadable Class Reference


Detailed Description

Base class for loadable, parameterizable classes.

A loadable class is one that can be loaded from a module at run time by specifying the location of the source file or library for that module.

To allow maximum flexibility of loadable classes, parameters for this class can also be loaded at run time by adding them to the parameters map in the Loadable class.

There are a few basic requirements for loadable classes: 1. They must derive from the Loadable base class. 2. The module where the class is defined must contain an instantiate() method that returns an instance of that class. 3. (Temporary limitation) The module file passed to createFromFile currently must be found in the default import path in Python.

#include <class_loadable_1_1_loadable.h>

Inheritance diagram for Loadable.Loadable:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  __init__ ()
  __eq__ ()
  __ne__ ()
  name ()
  createFromFile ()
  Instantiates an object of the Loadable subclass defined in the module contained in fileName.
  basename ()
  Return a basename that will be used to build names and labels.

Public Attributes

  moduleName

Member Function Documentation

Loadable.Loadable.__eq__ ( )
Loadable.Loadable.__ne__ ( )
Loadable.Loadable.name ( )
Loadable.Loadable.createFromFile ( )

Instantiates an object of the Loadable subclass defined in the module contained in fileName.

If fileName does not contain a proper module, or if that module does not define the instantiate() method, then this function returns None.


Member Data Documentation


Loadable.Loadable Loadable.Loadable Loadable.Loadable Loadable.Loadable Loadable.Loadable Loadable.Loadable Loadable.Loadable Loadable.Loadable Loadable.Loadable Loadable.Loadable
Loadable.Loadable Loadable.Loadable Loadable.Loadable Loadable.Loadable Loadable.Loadable Loadable.Loadable Loadable.Loadable Loadable.Loadable Loadable.Loadable Loadable.Loadable