The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
GaudiPython.Persistency.FileDescription Class Reference
Inheritance diagram for GaudiPython.Persistency.FileDescription:
Collaboration diagram for GaudiPython.Persistency.FileDescription:

Public Member Functions

 __init__ (self, filename, opt, svc, sel=None, collection=None, fun=None)
 
 __data__ (self)
 
 __str__ (self)
 

Public Attributes

 filename = filename
 
 opt = opt
 
 svc = svc
 
 sel = sel
 
 collection = collection
 
 fun = fun
 

Detailed Description

Definition at line 59 of file Persistency.py.

Constructor & Destructor Documentation

◆ __init__()

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

60 def __init__(self, filename, opt, svc, sel=None, collection=None, fun=None):
61 """
62 Class to hold/manipulate the file description.
63
64 @param filename: name of the file
65 @param opt: option (READ/CREATE/RECREATE/WRITE)
66 @param svc: conversion service (or selector)
67 @param sel: selection expression
68 @param collection: collection
69 @param fun: selection class
70 """
71 self.filename = filename
72 self.opt = opt
73 self.svc = svc
74 self.sel = sel
75 self.collection = collection
76 self.fun = fun
77

Member Function Documentation

◆ __data__()

GaudiPython.Persistency.FileDescription.__data__ ( self)
Return a list of pairs describing the instance.

Definition at line 78 of file Persistency.py.

78 def __data__(self):
79 """
80 Return a list of pairs describing the instance.
81 """
82 return [
83 ("DATAFILE", self.filename),
84 ("OPT", self.opt),
85 ("SVC", self.svc),
86 ("SEL", self.sel),
87 ("COLLECTION", self.collection),
88 ("FUN", self.fun),
89 ]
90

◆ __str__()

GaudiPython.Persistency.FileDescription.__str__ ( self)
Return the string representation of the file description to be passed
to the application.

Definition at line 91 of file Persistency.py.

91 def __str__(self):
92 """
93 Return the string representation of the file description to be passed
94 to the application.
95 """
96 return " ".join(["%s='%s'" % (k, v) for k, v in self.__data__() if v])
97
98

Member Data Documentation

◆ collection

GaudiPython.Persistency.FileDescription.collection = collection

Definition at line 75 of file Persistency.py.

◆ filename

GaudiPython.Persistency.FileDescription.filename = filename

Definition at line 71 of file Persistency.py.

◆ fun

GaudiPython.Persistency.FileDescription.fun = fun

Definition at line 76 of file Persistency.py.

◆ opt

GaudiPython.Persistency.FileDescription.opt = opt

Definition at line 72 of file Persistency.py.

◆ sel

GaudiPython.Persistency.FileDescription.sel = sel

Definition at line 74 of file Persistency.py.

◆ svc

GaudiPython.Persistency.FileDescription.svc = svc

Definition at line 73 of file Persistency.py.


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