This module contains the class definition for the MacroServer meta macro information
Functions
Classes
Bases: sardana.sardanameta.SardanaLibrary
Object representing a python module containing macro classes and/or macro functions. Public members:
module - reference to python module
file_path - complete (absolute) path (with file name at the end)
file_name - file name (including file extension)
path - complete (absolute) path
name - (=module name) module name (without file extension)
macros - dict<str, MacroClass>
- exc_info - exception information if an error occurred when loading
the module
Returns a :class:~`sardana.sardanameta.SardanaCode` for the given meta name or None if the meta does not exist in this library.
Parameters: | meta_name (str) – the meta name (class, function) |
---|---|
Returns: | a meta or None |
Return type: | :class:~`sardana.sardanameta.SardanaCode` |
Returns a sequence of the meta (class and functions) that belong to this library.
Returns: | a sequence of meta (class and functions) that belong to this library |
---|---|
Return type: | seq<:class:~`sardana.sardanameta.SardanaCode`> |
Returns True if the given meta name belongs to this library or False otherwise.
Parameters: | meta_name (str) – the meta name |
---|---|
Returns: | True if the given meta (class or function) name belongs to this library or False otherwise |
Return type: | bool |
Returns True if any meta object exists in the library or False otherwise.
Returns: | True if any meta object (class or function) exists in the library or False otherwise |
---|---|
Return type: | bool |
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 |
Adds a new :class:~`sardana.sardanameta.SardanaFunction` to this library.
Parameters: | meta_function (:class:~`sardana.sardanameta.SardanaFunction`) – the meta function to be added to this library |
---|
Returns a :class:~`sardana.sardanameta.SardanaFunction` for the given meta function name or None if the meta function does not exist in this library.
Parameters: | meta_function_name (str) – the meta function name |
---|---|
Returns: | a meta function or None |
Return type: | :class:~`sardana.sardanameta.SardanaFunction` |
Returns a sequence of the meta functions that belong to this library.
Returns: | a sequence of meta functions that belong to this library |
---|---|
Return type: | seq<:class:~`sardana.sardanameta.SardanaFunction`> |
Returns True if the given meta function name belongs to this library or False otherwise.
Parameters: | meta_function_name (str) – the meta function name |
---|---|
Returns: | True if the given meta function name belongs to this library or False otherwise |
Return type: | bool |
Bases: object
Helper class to handle parameter and result definition for a MacroClass or a MacroFunction
Bases: sardana.sardanameta.SardanaClass, sardana.macroserver.msmetamacro.Parameterizable
Bases: sardana.sardanameta.SardanaFunction, sardana.macroserver.msmetamacro.Parameterizable