The Gaudi Framework  v36r1 (3e2fb5a8)
GaudiPluginService.cpluginsvc.Factory Class Reference
Inheritance diagram for GaudiPluginService.cpluginsvc.Factory:
Collaboration diagram for GaudiPluginService.cpluginsvc.Factory:

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

Member Function Documentation

◆ __repr__()

def GaudiPluginService.cpluginsvc.Factory.__repr__ (   self)

Definition at line 144 of file cpluginsvc.py.

144  def __repr__(self):
145  return "<Factory id=%s library=%s type=%s class=%s props=%d>" % (
146  self.name,
147  self.library,
148  self.type,
149  self.classname,
150  len(self.properties),
151  )
152 

◆ classname()

def GaudiPluginService.cpluginsvc.Factory.classname (   self)

Definition at line 127 of file cpluginsvc.py.

127  def classname(self):
128  return _lib.cgaudi_factory_get_classname(self).decode('ascii')
129 

◆ library()

def GaudiPluginService.cpluginsvc.Factory.library (   self)

Definition at line 119 of file cpluginsvc.py.

119  def library(self):
120  return _lib.cgaudi_factory_get_library(self).decode('ascii')
121 

◆ load()

def GaudiPluginService.cpluginsvc.Factory.load (   self)
load the C++ library hosting this factory

Definition at line 139 of file cpluginsvc.py.

139  def load(self):
140  '''load the C++ library hosting this factory
141  '''
142  return ctypes.CDLL(self.library, ctypes.RTLD_GLOBAL)
143 

◆ name()

def GaudiPluginService.cpluginsvc.Factory.name (   self)

Definition at line 115 of file cpluginsvc.py.

115  def name(self):
116  return self._id.decode('ascii')
117 

◆ properties()

def GaudiPluginService.cpluginsvc.Factory.properties (   self)

Definition at line 131 of file cpluginsvc.py.

131  def properties(self):
132  props = {}
133  nprops = _lib.cgaudi_factory_get_property_size(self)
134  for i in range(nprops):
135  prop = _lib.cgaudi_factory_get_property_at(self, i)
136  props[prop.key] = prop.value
137  return props
138 

◆ type()

def GaudiPluginService.cpluginsvc.Factory.type (   self)

Definition at line 123 of file cpluginsvc.py.

123  def type(self):
124  return _lib.cgaudi_factory_get_type(self).decode('ascii')
125 

Member Data Documentation

◆ _fields_

list GaudiPluginService.cpluginsvc.Factory._fields_
staticprivate
Initial value:
= [
("_registry", Registry),
("_id", ctypes.c_char_p),
]

Definition at line 109 of file cpluginsvc.py.


The documentation for this class was generated from the following file:
TimingHistograms.name
name
Definition: TimingHistograms.py:23
GaudiPython.HistoUtils.__repr__
__repr__
Definition: HistoUtils.py:519
gaudiComponentHelp.properties
properties
Definition: gaudiComponentHelp.py:62
gaudirun.type
type
Definition: gaudirun.py:154
Gaudi::Functional::details::zip::range
decltype(auto) range(Args &&... args)
Zips multiple containers together to form a single range.
Definition: FunctionalDetails.h:97