This module is part of the Python Pool libray. It defines the base classes for
Classes
Bases: sardana.sardanameta.SardanaLibrary
Object representing a python module containning controller classes. Public members:
module - reference to python module
f_path - complete (absolute) path and filename
f_name - filename (including file extension)
path - complete (absolute) path
name - module name (without file extension)
controller_list - list<ControllerClass>
- exc_info - exception information if an error occured when loading
the module
Adds a new :class:~`sardana.sardanameta.SardanaClass` to this library.
Parameters: | meta_class (:class:~`sardana.sardanameta.SardanaClass`) – the meta class to be added to this library |
---|
Returns a :class:~`sardana.sardanameta.SardanaClass` for the given meta class name or None if the meta class does not exist in this library.
Parameters: | meta_class_name (str) – the meta class name |
---|---|
Returns: | a meta class or None |
Return type: | :class:~`sardana.sardanameta.SardanaClass` |
Returns a sequence of the meta classes that belong to this library.
Returns: | a sequence of meta classes that belong to this library |
---|---|
Return type: | seq<:class:~`sardana.sardanameta.SardanaClass`> |
Returns True if the given meta class name belongs to this library or False otherwise.
Parameters: | meta_class_name (str) – the meta class name |
---|---|
Returns: | True if the given meta class name belongs to this library or False otherwise |
Return type: | bool |
Bases: sardana.sardanameta.SardanaClass
Object representing a python controller class. Public members:
- name - class name
- klass - python class object
- lib - ControllerLibrary object representing the module where the controller is.
Constants
String containing template code for a controller class
a dictionary dict<ElementType, class> mapping element type enumeration with the corresponding controller pool class (PoolController or sub-class of it).
dictionary dict<ElementType, tuple> where tuple is a sequence:
dictionary dict<ElementType, TypeData>