The Gaudi Framework  v36r1 (3e2fb5a8)
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>"
 (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations # # This software is distributed under the terms of the Apache version 2 licence, # copied verbatim in the file "LICENSE". More...
 
list _implementations = []
 

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

49 def add(instance):
50  """
51  Function to extend the list of known helpers.
52 
53  New helpers are added to the top of the list.
54  """
55  _implementations.insert(0, instance)
56 
57 

◆ get()

def GaudiPython.Persistency.get (   type_)
Return the PersistencyHerper implementing the given persistency type.

Definition at line 39 of file Persistency.py.

39 def get(type_):
40  """
41  Return the PersistencyHerper implementing the given persistency type.
42  """
43  for i in _implementations:
44  if i.handle(type_):
45  return i
46  raise UnknownPersistency(type_)
47 
48 

Variable Documentation

◆ __author__

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

(c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations # # This software is distributed under the terms of the Apache version 2 licence, # copied verbatim in the file "LICENSE".

# # In applying this licence, CERN does not waive the privileges and immunities # granted to it by virtue of its status as an Intergovernmental Organization # or submit itself to any jurisdiction. #

Definition at line 14 of file Persistency.py.

◆ _implementations

list GaudiPython.Persistency._implementations = []
private

Definition at line 36 of file Persistency.py.

GaudiPython.Persistency.get
def get(type_)
Definition: Persistency.py:39
GaudiPython.Persistency.add
def add(instance)
Definition: Persistency.py:49