All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GaudiPython.Persistency Namespace Reference

Classes

class  FileDescription
 
class  PersistencyError
 
class  PersistencyHelper
 
class  RootPersistency
 
class  UnknownPersistency
 

Functions

def get
 
def add
 

Variables

string __author__ = "Marco Clemencic <marco.clemencic@cern.ch>"
 
list _implementations = []
 

Detailed Description

Module to configure the persistency type in GaudiPython.

Function Documentation

def GaudiPython.Persistency.add (   instance)
Function to extend the list of known helpers.

New helpers are added to the top of the list.

Definition at line 32 of file Persistency.py.

32 
33 def add(instance):
34  """
35  Function to extend the list of known helpers.
36 
37  New helpers are added to the top of the list.
38  """
39  _implementations.insert(0, instance)
def GaudiPython.Persistency.get (   type_)
Return the PersistencyHerper implementing the given persistency type.

Definition at line 23 of file Persistency.py.

23 
24 def get(type_):
25  """
26  Return the PersistencyHerper implementing the given persistency type.
27  """
28  for i in _implementations:
29  if i.handle(type_):
30  return i
31  raise UnknownPersistency(type_)

Variable Documentation

string GaudiPython.Persistency.__author__ = "Marco Clemencic <marco.clemencic@cern.ch>"

Definition at line 4 of file Persistency.py.

list GaudiPython.Persistency._implementations = []

Definition at line 21 of file Persistency.py.