The Gaudi Framework  v31r0 (aeb156f0)
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 88 of file cpluginsvc.py.

Member Function Documentation

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 
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 
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 
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 
def GaudiPluginService.cpluginsvc.Factory.name (   self)

Definition at line 104 of file cpluginsvc.py.

104  def name(self):
105  return self._id
106 
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 
decltype(auto) range(Args &&...args)
Zips multiple containers together to form a single range.
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 

Member Data Documentation

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

Definition at line 98 of file cpluginsvc.py.


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