equal
deleted
inserted
replaced
42 self.LibraryControler.AddConfNodeTypesList(TypeStack) |
42 self.LibraryControler.AddConfNodeTypesList(TypeStack) |
43 self.program = None |
43 self.program = None |
44 |
44 |
45 def GetSTCode(self): |
45 def GetSTCode(self): |
46 if not self.program: |
46 if not self.program: |
47 self.program = self.LibraryControler.GenerateProgram()[0]+"\n" |
47 self.program = self.LibraryControler.GenerateProgram(noconfig=True)[0]+"\n" |
48 return self.program |
48 return self.program |
49 |
49 |
50 def GetName(self): |
50 def GetName(self): |
51 return self.LibName |
51 return self.LibName |
52 |
52 |
63 # Pure python or IEC libs doesn't produce C code |
63 # Pure python or IEC libs doesn't produce C code |
64 return ((""), [], False), "" |
64 return ((""), [], False), "" |
65 |
65 |
66 def GlobalInstances(self): |
66 def GlobalInstances(self): |
67 """ |
67 """ |
68 @return: [(instance_name, instance_type),...] |
68 @return: [varlist_object, ...] |
69 """ |
69 """ |
70 return [] |
70 varlists = [] |
|
71 for configuration in self.LibraryControler.Project.getconfigurations(): |
|
72 varlist = configuration.getglobalVars() |
|
73 if len(varlist)>0 : |
|
74 varlists += varlist |
|
75 return varlists |
71 |
76 |
72 def FatalError(self, message): |
77 def FatalError(self, message): |
73 """ Raise an exception that will trigger error message intended to |
78 """ Raise an exception that will trigger error message intended to |
74 the user, but without backtrace since it is not a software error """ |
79 the user, but without backtrace since it is not a software error """ |
75 |
80 |