| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

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

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Private Attributes | List of all members
GaudiPluginService.cpluginsvc.Factory Class Reference
Inheritance diagram for GaudiPluginService.cpluginsvc.Factory:
[legend]
Collaboration diagram for GaudiPluginService.cpluginsvc.Factory:
[legend]

## Public Member Functions
def | name
def | library
def | type
def | rtype
def | classname
def | properties
def | load
def | __repr__

## Static Private Attributes
list | _fields_

## Detailed Description

    Factory holds informations about a component's factory:
    - its name
    - the library hosting that component
    - the type of component (algorithm, service, tool, ...)
    - the return type of this factory
    - the C++ class name of that component
    - the properties which may decorate that component.

Definition at line 78 of file cpluginsvc.py.

## Member Function Documentation

def GaudiPluginService.cpluginsvc.Factory.__repr__ | ( |  | self | ) |

Definition at line 127 of file cpluginsvc.py.

127
128 def __repr__(self):
129 return "<Factory id=%s library=%s type=%s rtype=%s class=%s props=%d>" % (
130 self._id,
131 self.library,
132 self.type,
133 self.rtype,
134 self.classname,
135 len(self.properties),
)

def GaudiPluginService.cpluginsvc.Factory.classname | ( |  | self | ) |

Definition at line 110 of file cpluginsvc.py.

110
111 def classname(self):
112 return _lib.cgaudi_factory_get_classname(self)

def GaudiPluginService.cpluginsvc.Factory.library | ( |  | self | ) |

Definition at line 98 of file cpluginsvc.py.

98
99 def library(self):
100 return _lib.cgaudi_factory_get_library(self)

def GaudiPluginService.cpluginsvc.Factory.load | ( |  | self | ) |

    load the C++ library hosting this factory

Definition at line 122 of file cpluginsvc.py.

122
123 def load(self):
124 '''load the C++ library hosting this factory
125 '''
126 return ctypes.cdll.LoadLibrary(self.library)

def GaudiPluginService.cpluginsvc.Factory.name | ( |  | self | ) |

Definition at line 94 of file cpluginsvc.py.

94
95 def name(self):
96 return self._id

def GaudiPluginService.cpluginsvc.Factory.properties | ( |  | self | ) |

Definition at line 114 of file cpluginsvc.py.

114
115 def properties(self):
116 props = {}
117 nprops = _lib.cgaudi_factory_get_property_size(self)
118 for i in range(nprops):
119 prop = _lib.cgaudi_factory_get_property_at(self, i)
120 props[prop.key] = prop.value
121 return props

def GaudiPluginService.cpluginsvc.Factory.rtype | ( |  | self | ) |

Definition at line 106 of file cpluginsvc.py.

106
107 def rtype(self):
108 return _lib.cgaudi_factory_get_rtype(self)

def GaudiPluginService.cpluginsvc.Factory.type | ( |  | self | ) |

Definition at line 102 of file cpluginsvc.py.

102
103 def type(self):
104 return _lib.cgaudi_factory_get_type(self)

## Member Data Documentation

list GaudiPluginService.cpluginsvc.Factory._fields_
| static private

Initial value:
1 [
2 ("_registry", Registry),
3 ("_id", ctypes.c_char_p),
4 ]

Definition at line 88 of file cpluginsvc.py.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiPluginService/python/GaudiPluginService/cpluginsvc.py