All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GaudiPython.Persistency.FileDescription Class Reference
Inheritance diagram for GaudiPython.Persistency.FileDescription:
Collaboration diagram for GaudiPython.Persistency.FileDescription:

Public Member Functions

def __init__
 
def __data__
 
def __str__
 

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

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 
59  def __data__(self):
60  '''
61  Return a list of pairs describing the instance.
62  '''
63  return [("DATAFILE", self.filename),
64  ("OPT", self.opt),
65  ("SVC", self.svc),
66  ("SEL", self.sel),
67  ("COLLECTION", self.collection),
("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 
69  def __str__(self):
70  """
71  Return the string representation of the file description to be passed
72  to the application.
73  """
74  return " ".join(["%s='%s'" % (k, v) for k, v in self.__data__() if v])

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: