The Gaudi Framework  v30r4 (9b837755)
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 87 of file cpluginsvc.py.

Member Function Documentation

def GaudiPluginService.cpluginsvc.Factory.__repr__ (   self)

Definition at line 132 of file cpluginsvc.py.

132  def __repr__(self):
133  return "<Factory id=%s library=%s type=%s class=%s props=%d>" % (
134  self._id,
135  self.library,
136  self.type,
137  self.classname,
138  len(self.properties),
139  )
def GaudiPluginService.cpluginsvc.Factory.classname (   self)

Definition at line 115 of file cpluginsvc.py.

115  def classname(self):
116  return _lib.cgaudi_factory_get_classname(self)
117 
def GaudiPluginService.cpluginsvc.Factory.library (   self)

Definition at line 107 of file cpluginsvc.py.

107  def library(self):
108  return _lib.cgaudi_factory_get_library(self)
109 
def GaudiPluginService.cpluginsvc.Factory.load (   self)
load the C++ library hosting this factory

Definition at line 127 of file cpluginsvc.py.

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

Definition at line 103 of file cpluginsvc.py.

103  def name(self):
104  return self._id
105 
def GaudiPluginService.cpluginsvc.Factory.properties (   self)

Definition at line 119 of file cpluginsvc.py.

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

Definition at line 111 of file cpluginsvc.py.

111  def type(self):
112  return _lib.cgaudi_factory_get_type(self)
113 

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


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