| The Gaudi Framework v29r0 (ff2e7097)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Namespace List
- Namespace Members

Classes | Functions | Variables
GaudiPluginService.cpluginsvc Namespace Reference

## Classes
class | Factory
class | Property
class | Registry

## Functions
def | _get_filename ()
def | registry ()
def | factories ()

## Variables
string | __doc__
tuple | __all__
| _libname = None
| _lib = ctypes.cdll.LoadLibrary(_libname)
| _instance = None
list | _functions_list
| n = f[0]
| func = getattr(_lib, n)
| argtypes
| restype
| errcheck

## Function Documentation

def GaudiPluginService.cpluginsvc._get_filename | ( |  | ) |
| private

Definition at line 33 of file cpluginsvc.py.

33 def _get_filename():
34 if _libname:
35 return _libname
36 import platform
37 name = platform.system()
38
39 fname = {
40 'Darwin': "libGaudiPluginService.dylib",
41 'Windows': "libGaudiPluginService.dll",
42 'Linux': "libGaudiPluginService.so",
43 }[name]
44 return fname
45
46
GaudiPluginService.cpluginsvc._get_filename
def _get_filename()
Definition: cpluginsvc.py:33

def GaudiPluginService.cpluginsvc.factories | ( |  | ) |

    factories returns the list of components factory informations known to the plugin service

Definition at line 80 of file cpluginsvc.py.

80 def factories():
81 '''
82 factories returns the list of components factory informations known to the plugin service
83 '''
84 return registry().factories
85
86
GaudiPluginService.cpluginsvc.registry
def registry()
Definition: cpluginsvc.py:70
GaudiPluginService.cpluginsvc.factories
def factories()
Definition: cpluginsvc.py:80

def GaudiPluginService.cpluginsvc.registry | ( |  | ) |

    registry returns the singleton-like instance of the plugin service.

Definition at line 70 of file cpluginsvc.py.

70 def registry():
71 '''registry returns the singleton-like instance of the plugin service.'''
72
73 global _instance
74 if _instance:
75 return _instance
76 _instance = _lib.cgaudi_pluginsvc_instance()
77 return _instance
78
79
GaudiPluginService.cpluginsvc.registry
def registry()
Definition: cpluginsvc.py:70

## Variable Documentation

tuple GaudiPluginService.cpluginsvc.__all__
| private

Initial value:
1 = (
2 "Registry",
3 "registry",
4 "factories",
5 "Factory",
6 "Property",
7 )

Definition at line 22 of file cpluginsvc.py.

string GaudiPluginService.cpluginsvc.__doc__
| private

Initial value:
1 = '''
2 cpluginsvc is a ctypes-based wrapper for the C-API of the GaudiPluginService.
3
4 e.g.:
5
6 >>> from GaudiPluginService import cpluginsvc
7 >>> for _,f in cpluginsvc.factories().items():
8 ... try:
9 ... f.load()
10 ... except Exception:
11 ... print ("** could not load [%s] for factory [%s]" % (f.library, f.name))
12 ... continue
13 ... print f
14 ... for k,v in f.properties.iteritems():
15 ... print ("\t%s: %s" % (k,v))
16 '''

Definition at line 2 of file cpluginsvc.py.

list GaudiPluginService.cpluginsvc._functions_list
| private

Definition at line 170 of file cpluginsvc.py.

GaudiPluginService.cpluginsvc._instance = None
| private

Definition at line 67 of file cpluginsvc.py.

GaudiPluginService.cpluginsvc._lib = ctypes.cdll.LoadLibrary(_libname)
| private

Definition at line 48 of file cpluginsvc.py.

GaudiPluginService.cpluginsvc._libname = None
| private

Definition at line 30 of file cpluginsvc.py.

GaudiPluginService.cpluginsvc.argtypes

Definition at line 230 of file cpluginsvc.py.

GaudiPluginService.cpluginsvc.errcheck

Definition at line 233 of file cpluginsvc.py.

GaudiPluginService.cpluginsvc.func = getattr(_lib, n)

Definition at line 229 of file cpluginsvc.py.

GaudiPluginService.cpluginsvc.n = f[0]

Definition at line 228 of file cpluginsvc.py.

GaudiPluginService.cpluginsvc.restype

Definition at line 231 of file cpluginsvc.py.