Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v29r0 (ff2e7097)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 48 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 49 of file Persistency.py.

49  def __init__(self, filename, opt, svc, sel=None, collection=None, fun=None):
50  '''
51  Class to hold/manipulate the file description.
52 
53  @param filename: name of the file
54  @param opt: option (READ/CREATE/RECREATE/WRITE)
55  @param svc: conversion service (or selector)
56  @param sel: selection expression
57  @param collection: collection
58  @param fun: selection class
59  '''
60  self.filename = filename
61  self.opt = opt
62  self.svc = svc
63  self.sel = sel
64  self.collection = collection
65  self.fun = fun
66 
def __init__(self, filename, opt, svc, sel=None, collection=None, fun=None)
Definition: Persistency.py:49

Member Function Documentation

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

Definition at line 67 of file Persistency.py.

67  def __data__(self):
68  '''
69  Return a list of pairs describing the instance.
70  '''
71  return [("DATAFILE", self.filename),
72  ("OPT", self.opt),
73  ("SVC", self.svc),
74  ("SEL", self.sel),
75  ("COLLECTION", self.collection),
76  ("FUN", self.fun)]
77 
def GaudiPython.Persistency.FileDescription.__str__ (   self)
Return the string representation of the file description to be passed
to the application.

Definition at line 78 of file Persistency.py.

78  def __str__(self):
79  """
80  Return the string representation of the file description to be passed
81  to the application.
82  """
83  return " ".join(["%s='%s'" % (k, v) for k, v in self.__data__() if v])
84 
85 

Member Data Documentation

GaudiPython.Persistency.FileDescription.collection

Definition at line 64 of file Persistency.py.

GaudiPython.Persistency.FileDescription.filename

Definition at line 60 of file Persistency.py.

GaudiPython.Persistency.FileDescription.fun

Definition at line 65 of file Persistency.py.

GaudiPython.Persistency.FileDescription.opt

Definition at line 61 of file Persistency.py.

GaudiPython.Persistency.FileDescription.sel

Definition at line 63 of file Persistency.py.

GaudiPython.Persistency.FileDescription.svc

Definition at line 62 of file Persistency.py.


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