The Gaudi Framework  v36r9 (fd2bdac3)
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 101 of file cpluginsvc.py.

Member Function Documentation

◆ __repr__()

def GaudiPluginService.cpluginsvc.Factory.__repr__ (   self)

Definition at line 146 of file cpluginsvc.py.

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

◆ classname()

def GaudiPluginService.cpluginsvc.Factory.classname (   self)

Definition at line 130 of file cpluginsvc.py.

130  def classname(self):
131  return _lib.cgaudi_factory_get_classname(self).decode("ascii")
132 

◆ library()

def GaudiPluginService.cpluginsvc.Factory.library (   self)

Definition at line 122 of file cpluginsvc.py.

122  def library(self):
123  return _lib.cgaudi_factory_get_library(self).decode("ascii")
124 

◆ load()

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

Definition at line 142 of file cpluginsvc.py.

142  def load(self):
143  """load the C++ library hosting this factory"""
144  return ctypes.CDLL(self.library, ctypes.RTLD_GLOBAL)
145 

◆ name()

def GaudiPluginService.cpluginsvc.Factory.name (   self)

Definition at line 118 of file cpluginsvc.py.

118  def name(self):
119  return self._id.decode("ascii")
120 

◆ properties()

def GaudiPluginService.cpluginsvc.Factory.properties (   self)

Definition at line 134 of file cpluginsvc.py.

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

◆ type()

def GaudiPluginService.cpluginsvc.Factory.type (   self)

Definition at line 126 of file cpluginsvc.py.

126  def type(self):
127  return _lib.cgaudi_factory_get_type(self).decode("ascii")
128 

Member Data Documentation

◆ _fields_

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

Definition at line 112 of file cpluginsvc.py.


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