| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Namespace List
- Namespace Members

Classes | Functions | Variables
GaudiPython.Persistency Namespace Reference

## Classes
class | FileDescription
class | PersistencyError
class | PersistencyHelper
class | RootPersistency
class | UnknownPersistency

## Functions
def | get (type_)
def | add (instance)

## 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 def add(instance):
33 """
34 Function to extend the list of known helpers.
35
36 New helpers are added to the top of the list.
37 """
38 _implementations.insert(0, instance)
39
GaudiPython.Persistency.add
def add(instance)
Definition: Persistency.py:32

def GaudiPython.Persistency.get | ( |  | type_ | ) |

    Return the PersistencyHerper implementing the given persistency type.

Definition at line 23 of file Persistency.py.

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

## 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.