python::GBSIOHelper Namespace Reference


Classes

class  GBSIOHelper

Functions

def TestIOHelper


Function Documentation

def python::GBSIOHelper::TestIOHelper (  ) 

Definition at line 132 of file GBSIOHelper.py.

00132                   :
00133     ioh = GBSIOHelper("TestIOHelper.state","w")
00134     ioh("A String","s","This is a string")
00135     ioh.DoIO("An integer","i",42)
00136     ioh.DoIO("A floating point","f",3.14159)
00137     ioh.DoIO("A list","p",["abc",123,456.0])
00138     ioh.DoIO("A tuple","p",("xyz",111,222.0))
00139     ioh.DoIO("A second list","p",["abc",123,456.0])
00140     ioh.DoIO("A second tuple","p",("xyz",111,222.0))
00141     ioh.Close()
00142     del ioh
00143     ioh = GBSIOHelper("TestIOHelper.state","r")
00144 
00145     value = ioh("A String","s")
00146     print value
00147     value = ioh.DoIO("An integer","i")
00148     print value
00149     value = ioh.DoIO("A floating point","f")
00150     print value
00151     value =  ioh.DoIO("A list","p")
00152     print value
00153     value =  ioh.DoIO("A tuple","p")
00154     print value
00155     value =  ioh.DoIO("A second list","p")
00156     print value
00157     value =  ioh.DoIO("A second tuple","p")
00158     print value
00159     ioh.Close()
00160     del ioh
00161 
00162     
00163     
00164            
00165            
00166            
00167             
00168 
00169 


Generated on Fri Mar 5 09:25:41 2010 for gbs by  doxygen 1.4.7