src/eric7/EricXML/ProjectReader.py

branch
eric7
changeset 10423
299802979277
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10422:e28b89693f37 10423:299802979277
22 22
23 def __init__(self, device, project): 23 def __init__(self, device, project):
24 """ 24 """
25 Constructor 25 Constructor
26 26
27 @param device reference to the I/O device to read from (QIODevice) 27 @param device reference to the I/O device to read from
28 @type QIODevice
28 @param project Reference to the project object to store the 29 @param project Reference to the project object to store the
29 information into. 30 information into.
31 @type Project
30 """ 32 """
31 XMLStreamReaderBase.__init__(self, device) 33 XMLStreamReaderBase.__init__(self, device)
32 34
33 self.project = project 35 self.project = project
34 36
187 189
188 def __readFiles(self, tag, listTag, dataKey): 190 def __readFiles(self, tag, listTag, dataKey):
189 """ 191 """
190 Private method to read a list of files. 192 Private method to read a list of files.
191 193
192 @param tag name of the list tag (string) 194 @param tag name of the list tag
193 @param listTag name of the list element tag (string) 195 @type str
194 @param dataKey key of the project data element (string) 196 @param listTag name of the list element tag
197 @type str
198 @param dataKey key of the project data element
199 @type str
195 """ 200 """
196 while not self.atEnd(): 201 while not self.atEnd():
197 self.readNext() 202 self.readNext()
198 if self.isEndElement() and self.name() == tag: 203 if self.isEndElement() and self.name() == tag:
199 break 204 break
212 217
213 def __readBasicDataField(self, tag, dataTag, dataKey): 218 def __readBasicDataField(self, tag, dataTag, dataKey):
214 """ 219 """
215 Private method to read a list of files. 220 Private method to read a list of files.
216 221
217 @param tag name of the list tag (string) 222 @param tag name of the list tag
218 @param dataTag name of the data tag (string) 223 @type str
219 @param dataKey key of the project data element (string) 224 @param dataTag name of the data tag
225 @type str
226 @param dataKey key of the project data element
227 @type str
220 """ 228 """
221 while not self.atEnd(): 229 while not self.atEnd():
222 self.readNext() 230 self.readNext()
223 if self.isEndElement() and self.name() == tag: 231 if self.isEndElement() and self.name() == tag:
224 break 232 break

eric ide

mercurial