All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GaudiPluginService.cpluginsvc.Factory Class Reference
Inheritance diagram for GaudiPluginService.cpluginsvc.Factory:
Collaboration diagram for GaudiPluginService.cpluginsvc.Factory:

Public Member Functions

def name
 
def library
 
def type
 
def rtype
 
def classname
 
def properties
 
def load
 
def __repr__
 

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

Member Function Documentation

def GaudiPluginService.cpluginsvc.Factory.__repr__ (   self)

Definition at line 127 of file cpluginsvc.py.

128  def __repr__(self):
129  return "<Factory id=%s library=%s type=%s rtype=%s class=%s props=%d>" % (
130  self._id,
131  self.library,
132  self.type,
133  self.rtype,
134  self.classname,
135  len(self.properties),
)
def GaudiPluginService.cpluginsvc.Factory.classname (   self)

Definition at line 110 of file cpluginsvc.py.

111  def classname(self):
112  return _lib.cgaudi_factory_get_classname(self)
def GaudiPluginService.cpluginsvc.Factory.library (   self)

Definition at line 98 of file cpluginsvc.py.

98 
99  def library(self):
100  return _lib.cgaudi_factory_get_library(self)
def GaudiPluginService.cpluginsvc.Factory.load (   self)
load the C++ library hosting this factory

Definition at line 122 of file cpluginsvc.py.

123  def load(self):
124  '''load the C++ library hosting this factory
125  '''
126  return ctypes.cdll.LoadLibrary(self.library)
def GaudiPluginService.cpluginsvc.Factory.name (   self)

Definition at line 94 of file cpluginsvc.py.

94 
95  def name(self):
96  return self._id
def GaudiPluginService.cpluginsvc.Factory.properties (   self)

Definition at line 114 of file cpluginsvc.py.

115  def properties(self):
116  props = {}
117  nprops = _lib.cgaudi_factory_get_property_size(self)
118  for i in range(nprops):
119  prop = _lib.cgaudi_factory_get_property_at(self, i)
120  props[prop.key] = prop.value
121  return props
NamedRange_< CONTAINER > range(const CONTAINER &cnt, const std::string &name)
simple function to create the named range form arbitrary container
Definition: NamedRange.h:133
def GaudiPluginService.cpluginsvc.Factory.rtype (   self)

Definition at line 106 of file cpluginsvc.py.

107  def rtype(self):
108  return _lib.cgaudi_factory_get_rtype(self)
def GaudiPluginService.cpluginsvc.Factory.type (   self)

Definition at line 102 of file cpluginsvc.py.

103  def type(self):
104  return _lib.cgaudi_factory_get_type(self)

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


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