Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v28r2p1 (f1a77ff4)
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 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
def __init__(self, filename, opt, svc, sel=None, collection=None, fun=None)
Definition: Persistency.py:41

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)]
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 

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: