2 # Generated python file of Graph GraphConvertShortStringCheck
6 GraphConvertShortStringCheck = Graph( 'GraphConvertShortStringCheck' )
7 GraphConvertShortStringCheck.SetName( 'GraphConvertShortStringCheck' )
8 GraphConvertShortStringCheck.SetAuthor( 'JR' )
9 GraphConvertShortStringCheck.SetComment( 'Check conversions of String' )
10 GraphConvertShortStringCheck.Coords( 0 , 0 )
12 # Creation of Factory Nodes
14 MiscTypes = GraphConvertShortStringCheck.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 )
21 # Creation of InLine Nodes
23 PyShortString.append( 'def ShortString() : ' )
24 PyShortString.append( ' string = "32767" ' )
25 PyShortString.append( ' return string ' )
26 PyShortString.append( ' ' )
27 ShortString = GraphConvertShortStringCheck.INode( 'ShortString' , PyShortString )
28 ShortString.OutPort( 'OutString' , 'string' )
29 ShortString.SetName( 'ShortString' )
30 ShortString.SetAuthor( 'JR' )
31 ShortString.SetComment( 'InLine Node' )
32 ShortString.Coords( 14 , 114 )
35 ShortStringOutString = ShortString.Port( 'OutString' )
36 MiscTypesInString = GraphConvertShortStringCheck.Link( ShortStringOutString , MiscTypes.Port( 'InString' ) )
38 MiscTypesInBool = GraphConvertShortStringCheck.Link( ShortStringOutString , MiscTypes.Port( 'InBool' ) )
40 MiscTypesInChar = GraphConvertShortStringCheck.Link( ShortStringOutString , MiscTypes.Port( 'InChar' ) )
42 MiscTypesInShort = GraphConvertShortStringCheck.Link( ShortStringOutString , MiscTypes.Port( 'InShort' ) )
44 MiscTypesInLong = GraphConvertShortStringCheck.Link( ShortStringOutString , MiscTypes.Port( 'InLong' ) )
46 MiscTypesInFloat = GraphConvertShortStringCheck.Link( ShortStringOutString , MiscTypes.Port( 'InFloat' ) )
48 MiscTypesInDouble = GraphConvertShortStringCheck.Link( ShortStringOutString , MiscTypes.Port( 'InDouble' ) )
50 MiscTypesInObjRef = GraphConvertShortStringCheck.Link( ShortStringOutString , MiscTypes.Port( 'InObjRef' ) )
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' )
62 GraphConvertShortStringCheck.Run()
63 GraphConvertShortStringCheck.DoneW()
64 GraphConvertShortStringCheck.PrintPorts()