Salome HOME
Imported using TkCVS
[samples/datafiles.git] / Superv / Python / GraphConvertFloatStringCheck.py
1
2 # Generated python file of Graph GraphConvertFloatStringCheck
3
4 from SuperV import *
5 # Graph creation 
6 GraphConvertFloatStringCheck = Graph( 'GraphConvertFloatStringCheck' )
7 GraphConvertFloatStringCheck.SetName( 'GraphConvertFloatStringCheck' )
8 GraphConvertFloatStringCheck.SetAuthor( 'JR' )
9 GraphConvertFloatStringCheck.SetComment( 'Check conversions of String' )
10 GraphConvertFloatStringCheck.Coords( 0 , 0 )
11
12 # Creation of Factory Nodes
13
14 MiscTypes = GraphConvertFloatStringCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' )
15 MiscTypes.SetName( 'MiscTypes' )
16 MiscTypes.SetAuthor( '' )
17 MiscTypes.SetContainer( 'localhost/FactoryServer' )
18 MiscTypes.SetComment( 'MiscTypes from TypesCheck' )
19 MiscTypes.Coords( 284 , 28 )
20
21 # Creation of InLine Nodes
22 PyFloatString = []
23 PyFloatString.append( 'def FloatString() :  ' )
24 PyFloatString.append( '    string = "3.1415926535"  ' )
25 PyFloatString.append( '    return string  ' )
26 PyFloatString.append( ' ' )
27 FloatString = GraphConvertFloatStringCheck.INode( 'FloatString' , PyFloatString )
28 FloatString.OutPort( 'OutString' , 'string' )
29 FloatString.SetName( 'FloatString' )
30 FloatString.SetAuthor( 'JR' )
31 FloatString.SetComment( 'InLine Node' )
32 FloatString.Coords( 14 , 114 )
33
34 # Creation of Links
35 FloatStringOutString = FloatString.Port( 'OutString' )
36 MiscTypesInString = GraphConvertFloatStringCheck.Link( FloatStringOutString , MiscTypes.Port( 'InString' ) )
37
38 MiscTypesInBool = GraphConvertFloatStringCheck.Link( FloatStringOutString , MiscTypes.Port( 'InBool' ) )
39
40 MiscTypesInChar = GraphConvertFloatStringCheck.Link( FloatStringOutString , MiscTypes.Port( 'InChar' ) )
41
42 MiscTypesInShort = GraphConvertFloatStringCheck.Link( FloatStringOutString , MiscTypes.Port( 'InShort' ) )
43
44 MiscTypesInLong = GraphConvertFloatStringCheck.Link( FloatStringOutString , MiscTypes.Port( 'InLong' ) )
45
46 MiscTypesInFloat = GraphConvertFloatStringCheck.Link( FloatStringOutString , MiscTypes.Port( 'InFloat' ) )
47
48 MiscTypesInDouble = GraphConvertFloatStringCheck.Link( FloatStringOutString , MiscTypes.Port( 'InDouble' ) )
49
50 MiscTypesInObjRef = GraphConvertFloatStringCheck.Link( FloatStringOutString , MiscTypes.Port( 'InObjRef' ) )
51
52 # Creation of Output variables
53 MiscTypesOutString = MiscTypes.Port( 'OutString' )
54 MiscTypesOutBool = MiscTypes.Port( 'OutBool' )
55 MiscTypesOutChar = MiscTypes.Port( 'OutChar' )
56 MiscTypesOutShort = MiscTypes.Port( 'OutShort' )
57 MiscTypesOutLong = MiscTypes.Port( 'OutLong' )
58 MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' )
59 MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' )
60 MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' )
61
62 GraphConvertFloatStringCheck.Run()
63 GraphConvertFloatStringCheck.DoneW()
64 GraphConvertFloatStringCheck.PrintPorts()