The Gaudi Framework  master (594c33fa)
GaudiPython.Persistency Namespace Reference

Classes

class  FileDescription
 
class  PersistencyError
 
class  PersistencyHelper
 
class  RootPersistency
 
class  UnknownPersistency
 

Functions

def get (type_)
 
def add (instance)
 

Variables

 __author__
 (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...
 
 _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 50 of file Persistency.py.

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

◆ get()

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

Definition at line 40 of file Persistency.py.

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

Variable Documentation

◆ __author__

GaudiPython.Persistency.__author__
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 15 of file Persistency.py.

◆ _implementations

GaudiPython.Persistency._implementations
private

Definition at line 37 of file Persistency.py.

GaudiPython.Persistency.get
def get(type_)
Definition: Persistency.py:40
GaudiPython.Persistency.add
def add(instance)
Definition: Persistency.py:50