The Gaudi Framework  v36r9 (fd2bdac3)
GaudiPython.Persistency.FileDescription Class Reference
Inheritance diagram for GaudiPython.Persistency.FileDescription:
Collaboration diagram for GaudiPython.Persistency.FileDescription:

Public Member Functions

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

Public Attributes

 filename
 
 opt
 
 svc
 
 sel
 
 collection
 
 fun
 

Detailed Description

Definition at line 58 of file Persistency.py.

Constructor & Destructor Documentation

◆ __init__()

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

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

Member Function Documentation

◆ __data__()

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

Definition at line 77 of file Persistency.py.

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

◆ __str__()

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

Definition at line 90 of file Persistency.py.

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

Member Data Documentation

◆ collection

GaudiPython.Persistency.FileDescription.collection

Definition at line 74 of file Persistency.py.

◆ filename

GaudiPython.Persistency.FileDescription.filename

Definition at line 70 of file Persistency.py.

◆ fun

GaudiPython.Persistency.FileDescription.fun

Definition at line 75 of file Persistency.py.

◆ opt

GaudiPython.Persistency.FileDescription.opt

Definition at line 71 of file Persistency.py.

◆ sel

GaudiPython.Persistency.FileDescription.sel

Definition at line 73 of file Persistency.py.

◆ svc

GaudiPython.Persistency.FileDescription.svc

Definition at line 72 of file Persistency.py.


The documentation for this class was generated from the following file:
GaudiPython.HistoUtils.__str__
__str__
Definition: HistoUtils.py:539