The Gaudi Framework  v29r5 (37229091)
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 rtype (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 136 of file cpluginsvc.py.

136  def __repr__(self):
137  return "<Factory id=%s library=%s type=%s rtype=%s class=%s props=%d>" % (
138  self._id,
139  self.library,
140  self.type,
141  self.rtype,
142  self.classname,
143  len(self.properties),
144  )
def GaudiPluginService.cpluginsvc.Factory.classname (   self)

Definition at line 119 of file cpluginsvc.py.

119  def classname(self):
120  return _lib.cgaudi_factory_get_classname(self)
121 
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 131 of file cpluginsvc.py.

131  def load(self):
132  '''load the C++ library hosting this factory
133  '''
134  return ctypes.cdll.LoadLibrary(self.library)
135 
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 123 of file cpluginsvc.py.

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

Definition at line 115 of file cpluginsvc.py.

115  def rtype(self):
116  return _lib.cgaudi_factory_get_rtype(self)
117 
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: