The Gaudi Framework  v32r2 (46d42edc)
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 89 of file cpluginsvc.py.

Member Function Documentation

◆ __repr__()

def GaudiPluginService.cpluginsvc.Factory.__repr__ (   self)

Definition at line 134 of file cpluginsvc.py.

134  def __repr__(self):
135  return "<Factory id=%s library=%s type=%s class=%s props=%d>" % (
136  self.name,
137  self.library,
138  self.type,
139  self.classname,
140  len(self.properties),
141  )
142 

◆ classname()

def GaudiPluginService.cpluginsvc.Factory.classname (   self)

Definition at line 117 of file cpluginsvc.py.

117  def classname(self):
118  return _lib.cgaudi_factory_get_classname(self).decode('ascii')
119 

◆ library()

def GaudiPluginService.cpluginsvc.Factory.library (   self)

Definition at line 109 of file cpluginsvc.py.

109  def library(self):
110  return _lib.cgaudi_factory_get_library(self).decode('ascii')
111 

◆ load()

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

Definition at line 129 of file cpluginsvc.py.

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

◆ name()

def GaudiPluginService.cpluginsvc.Factory.name (   self)

Definition at line 105 of file cpluginsvc.py.

105  def name(self):
106  return self._id.decode('ascii')
107 

◆ properties()

def GaudiPluginService.cpluginsvc.Factory.properties (   self)

Definition at line 121 of file cpluginsvc.py.

121  def properties(self):
122  props = {}
123  nprops = _lib.cgaudi_factory_get_property_size(self)
124  for i in range(nprops):
125  prop = _lib.cgaudi_factory_get_property_at(self, i)
126  props[prop.key] = prop.value
127  return props
128 
decltype(auto) range(Args &&... args)
Zips multiple containers together to form a single range.

◆ type()

def GaudiPluginService.cpluginsvc.Factory.type (   self)

Definition at line 113 of file cpluginsvc.py.

113  def type(self):
114  return _lib.cgaudi_factory_get_type(self).decode('ascii')
115 

Member Data Documentation

◆ _fields_

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

Definition at line 99 of file cpluginsvc.py.


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