The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
GaudiPython.Persistency Namespace Reference

Classes

class  FileDescription
 
class  PersistencyError
 
class  PersistencyHelper
 
class  RootPersistency
 
class  UnknownPersistency
 

Functions

 get (type_)
 
 add (instance)
 

Variables

str __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".
 
list _implementations = []
 

Function Documentation

◆ add()

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.

50def 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()

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

Definition at line 40 of file Persistency.py.

40def 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__

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

◆ _implementations

list GaudiPython.Persistency._implementations = []
protected

Definition at line 37 of file Persistency.py.