Package PyFoam :: Package Applications :: Module EchoPickledApplicationData
[hide private]
[frames] | no frames]

Source Code for Module PyFoam.Applications.EchoPickledApplicationData

 1  #  ICE Revision: $Id$ 
 2  """ 
 3  Application class that implements pyFoamEchoPickledApplicationData 
 4  """ 
 5   
 6  from .PyFoamApplication import PyFoamApplication 
 7   
 8  from .CommonPickledDataInput import CommonPickledDataInput 
 9   
10 -class EchoPickledApplicationData(PyFoamApplication, 11 CommonPickledDataInput):
12 - def __init__(self, 13 args=None, 14 inputApp=None, 15 **kwargs):
16 description="""\ Reads a file with pickled application data 17 and if asked for prints it. Mainly used for testing the exchange of 18 data via pickled data 19 """ 20 21 PyFoamApplication.__init__(self, 22 args=args, 23 description=description, 24 usage="%prog [options]", 25 nr=0, 26 changeVersion=False, 27 interspersed=True, 28 inputApp=inputApp, 29 **kwargs)
30
31 - def addOptions(self):
33
34 - def run(self):
35 self.setData(self.readPickledData())
36 37 # Should work with Python3 and Python2 38