| The Gaudi Framework v32r1 (f65d50dc)

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 (self)
def | library (self)
def | type (self)
def | classname (self)
def | properties (self)
def | load (self)
def | __repr__ (self)

## 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 88 of file cpluginsvc.py.

## Member Function Documentation

## ◆ __repr__()

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

Definition at line 133 of file cpluginsvc.py.

133 def __repr__(self):
134 return "<Factory id=%s library=%s type=%s class=%s props=%d>" % (
135 self._id,
136 self.library,
137 self.type,
138 self.classname,
139 len(self.properties),
140 )
141
GaudiPython.HistoUtils.__repr__
__repr__
Definition: HistoUtils.py:508

## ◆ classname()

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

Definition at line 116 of file cpluginsvc.py.

116 def classname(self):
117 return _lib.cgaudi_factory_get_classname(self)
118

## ◆ library()

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

Definition at line 108 of file cpluginsvc.py.

108 def library(self):
109 return _lib.cgaudi_factory_get_library(self)
110

## ◆ load()

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

    load the C++ library hosting this factory

Definition at line 128 of file cpluginsvc.py.

128 def load(self):
129 '''load the C++ library hosting this factory
130 '''
131 return ctypes.CDLL(self.library, ctypes.RTLD_GLOBAL)
132

## ◆ name()

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

Definition at line 104 of file cpluginsvc.py.

104 def name(self):
105 return self._id
106
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:41

## ◆ properties()

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

Definition at line 120 of file cpluginsvc.py.

120 def properties(self):
121 props = {}
122 nprops = _lib.cgaudi_factory_get_property_size(self)
123 for i in range(nprops):
124 prop = _lib.cgaudi_factory_get_property_at(self, i)
125 props[prop.key] = prop.value
126 return props
127
Gaudi::Functional::details::zip::range
decltype(auto) range(Args &&... args)
Zips multiple containers together to form a single range.
Definition: FunctionalDetails.h:71
gaudiComponentHelp.properties
properties
Definition: gaudiComponentHelp.py:51

## ◆ type()

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

Definition at line 112 of file cpluginsvc.py.

112 def type(self):
113 return _lib.cgaudi_factory_get_type(self)
114
gaudirun.type
type
Definition: gaudirun.py:142

## Member Data Documentation

## ◆ _fields_

list GaudiPluginService.cpluginsvc.Factory._fields_
| static private

Initial value:
= [
("_registry", Registry),
("_id", ctypes.c_char_p),
]

Definition at line 98 of file cpluginsvc.py.

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

- GaudiPluginService/python/GaudiPluginService/cpluginsvc.py