| The Gaudi Framework v27r1

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

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes | List of all members
GaudiPython.Persistency.FileDescription Class Reference
Inheritance diagram for GaudiPython.Persistency.FileDescription:
[legend]
Collaboration diagram for GaudiPython.Persistency.FileDescription:
[legend]

## Public Member Functions
def | __init__
def | __data__ (self)
def | __str__ (self)

## Public Attributes
| filename
| opt
| svc
| sel
| collection
| fun

## Detailed Description

Definition at line 40 of file Persistency.py.

## Constructor & Destructor Documentation

def GaudiPython.Persistency.FileDescription.__init__ | ( |  | self,
|  |  | filename,
|  |  | opt,
|  |  | svc,
|  |  | sel = `None`,
|  |  | collection = `None`,
|  |  | fun = `None`
| ) |  |

    Class to hold/manipulate the file description.

    @param filename: name of the file
    @param opt: option (READ/CREATE/RECREATE/WRITE)
    @param svc: conversion service (or selector)
    @param sel: selection expression
    @param collection: collection
    @param fun: selection class

Definition at line 41 of file Persistency.py.

41 def __init__(self, filename, opt, svc, sel=None, collection=None, fun=None):
42 '''
43 Class to hold/manipulate the file description.
44
45 @param filename: name of the file
46 @param opt: option (READ/CREATE/RECREATE/WRITE)
47 @param svc: conversion service (or selector)
48 @param sel: selection expression
49 @param collection: collection
50 @param fun: selection class
51 '''
52 self.filename = filename
53 self.opt = opt
54 self.svc = svc
55 self.sel = sel
56 self.collection = collection
57 self.fun = fun
GaudiPython.Persistency.FileDescription.collection
collection
Definition: Persistency.py:56
GaudiPython.Persistency.FileDescription.filename
filename
Definition: Persistency.py:52
GaudiPython.Persistency.FileDescription.svc
svc
Definition: Persistency.py:54
GaudiPython.Persistency.FileDescription.__init__
def __init__
Definition: Persistency.py:41
GaudiPython.Persistency.FileDescription.opt
opt
Definition: Persistency.py:53
GaudiPython.Persistency.FileDescription.sel
sel
Definition: Persistency.py:55
GaudiPython.Persistency.FileDescription.fun
fun
Definition: Persistency.py:57

## Member Function Documentation

def GaudiPython.Persistency.FileDescription.__data__ | ( |  | self | ) |

    Return a list of pairs describing the instance.

Definition at line 58 of file Persistency.py.

58 def __data__(self):
59 '''
60 Return a list of pairs describing the instance.
61 '''
62 return [("DATAFILE", self.filename),
63 ("OPT", self.opt),
64 ("SVC", self.svc),
65 ("SEL", self.sel),
66 ("COLLECTION", self.collection),
67 ("FUN", self.fun)]
GaudiPython.Persistency.FileDescription.collection
collection
Definition: Persistency.py:56
GaudiPython.Persistency.FileDescription.__data__
def __data__(self)
Definition: Persistency.py:58
GaudiPython.Persistency.FileDescription.filename
filename
Definition: Persistency.py:52
GaudiPython.Persistency.FileDescription.svc
svc
Definition: Persistency.py:54
GaudiPython.Persistency.FileDescription.opt
opt
Definition: Persistency.py:53
GaudiPython.Persistency.FileDescription.sel
sel
Definition: Persistency.py:55
GaudiPython.Persistency.FileDescription.fun
fun
Definition: Persistency.py:57

def GaudiPython.Persistency.FileDescription.__str__ | ( |  | self | ) |

    Return the string representation of the file description to be passed
    to the application.

Definition at line 68 of file Persistency.py.

68 def __str__(self):
69 """
70 Return the string representation of the file description to be passed
71 to the application.
72 """
73 return " ".join(["%s='%s'" % (k, v) for k, v in self.__data__() if v])
74
GaudiPython.Persistency.FileDescription.__data__
def __data__(self)
Definition: Persistency.py:58
GaudiPython.Persistency.FileDescription.__str__
def __str__(self)
Definition: Persistency.py:68

## Member Data Documentation

GaudiPython.Persistency.FileDescription.collection

Definition at line 56 of file Persistency.py.

GaudiPython.Persistency.FileDescription.filename

Definition at line 52 of file Persistency.py.

GaudiPython.Persistency.FileDescription.fun

Definition at line 57 of file Persistency.py.

GaudiPython.Persistency.FileDescription.opt

Definition at line 53 of file Persistency.py.

GaudiPython.Persistency.FileDescription.sel

Definition at line 55 of file Persistency.py.

GaudiPython.Persistency.FileDescription.svc

Definition at line 54 of file Persistency.py.

The documentation for this class was generated from the following file:

- GaudiPython/python/GaudiPython/Persistency.py