| The Gaudi Framework v32r1 (f65d50dc)

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

## ◆ add()

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 39 of file Persistency.py.

39 def add(instance):
40 """
41 Function to extend the list of known helpers.
42
43 New helpers are added to the top of the list.
44 """
45 _implementations.insert(0, instance)
46
47
GaudiPython.Persistency.add
def add(instance)
Definition: Persistency.py:39

## ◆ get()

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

    Return the PersistencyHerper implementing the given persistency type.

Definition at line 29 of file Persistency.py.

29 def get(type_):
30 """
31 Return the PersistencyHerper implementing the given persistency type.
32 """
33 for i in _implementations:
34 if i.handle(type_):
35 return i
36 raise UnknownPersistency(type_)
37
38
GaudiPython.Persistency.get
def get(type_)
Definition: Persistency.py:29

## Variable Documentation

## ◆ __author__

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

Definition at line 4 of file Persistency.py.

## ◆ _implementations

list GaudiPython.Persistency._implementations = []
| private

Definition at line 26 of file Persistency.py.