|
1 <?xml version="1.0" encoding="ascii"?> |
|
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
|
3 "DTD/xhtml1-transitional.dtd"> |
|
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|
5 <head> |
|
6 <title>ats3.parsers.MmpFileParser</title> |
|
7 <link rel="stylesheet" href="epydoc.css" type="text/css" /> |
|
8 <script type="text/javascript" src="epydoc.js"></script> |
|
9 </head> |
|
10 |
|
11 <body bgcolor="white" text="black" link="blue" vlink="#204080" |
|
12 alink="#204080"> |
|
13 <!-- ==================== NAVIGATION BAR ==================== --> |
|
14 <table class="navbar" border="0" width="100%" cellpadding="0" |
|
15 bgcolor="#a0c0ff" cellspacing="0"> |
|
16 <tr valign="middle"> |
|
17 |
|
18 <!-- Tree link --> |
|
19 <th> <a |
|
20 href="module-tree.html">Trees</a> </th> |
|
21 |
|
22 <!-- Index link --> |
|
23 <th> <a |
|
24 href="identifier-index.html">Indices</a> </th> |
|
25 |
|
26 <!-- Help link --> |
|
27 <th> <a |
|
28 href="help.html">Help</a> </th> |
|
29 |
|
30 <th class="navbar" width="100%"></th> |
|
31 </tr> |
|
32 </table> |
|
33 <table width="100%" cellpadding="0" cellspacing="0"> |
|
34 <tr valign="top"> |
|
35 <td width="100%"> |
|
36 <span class="breadcrumbs"> |
|
37 <a href="ats3-module.html">Package ats3</a> :: |
|
38 <a href="ats3.parsers-module.html">Module parsers</a> :: |
|
39 Class MmpFileParser |
|
40 </span> |
|
41 </td> |
|
42 <td> |
|
43 <table cellpadding="0" cellspacing="0"> |
|
44 <!-- hide/show private --> |
|
45 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink" |
|
46 onclick="toggle_private();">hide private</a>]</span></td></tr> |
|
47 <tr><td align="right"><span class="options" |
|
48 >[<a href="frames.html" target="_top">frames</a |
|
49 >] | <a href="ats3.parsers.MmpFileParser-class.html" |
|
50 target="_top">no frames</a>]</span></td></tr> |
|
51 </table> |
|
52 </td> |
|
53 </tr> |
|
54 </table> |
|
55 <!-- ==================== CLASS DESCRIPTION ==================== --> |
|
56 <h1 class="epydoc">Class MmpFileParser</h1><span class="codelink"><a href="ats3.parsers-pysrc.html#MmpFileParser">source code</a></span><br /><br /> |
|
57 <pre class="base-tree"> |
|
58 object --+ |
|
59 | |
|
60 <strong class="uidshort">MmpFileParser</strong> |
|
61 </pre> |
|
62 |
|
63 <hr /> |
|
64 Parser for .mmp files. Returns wanted information from the mmp-file |
|
65 - file type (executable dll, plugin, exe, etc) |
|
66 - test harness (STIF, EUNIT) if mmp is related to the test component |
|
67 - file name |
|
68 - libraries listed in the mmp<br /><br /> |
|
69 |
|
70 <!-- ==================== INSTANCE METHODS ==================== --> |
|
71 <a name="section-InstanceMethods"></a> |
|
72 <table class="summary" border="1" cellpadding="3" |
|
73 cellspacing="0" width="100%" bgcolor="white"> |
|
74 <tr bgcolor="#70b0f0" class="table-header"> |
|
75 <td colspan="2" class="table-header"> |
|
76 <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
|
77 <tr valign="top"> |
|
78 <td align="left"><span class="table-header">Instance Methods</span></td> |
|
79 <td align="right" valign="top" |
|
80 ><span class="options">[<a href="#section-InstanceMethods" |
|
81 class="privatelink" onclick="toggle_private();" |
|
82 >hide private</a>]</span></td> |
|
83 </tr> |
|
84 </table> |
|
85 </td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td width="15%" align="right" valign="top" class="summary"> |
|
89 <span class="summary-type"> </span> |
|
90 </td><td class="summary"> |
|
91 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
92 <tr> |
|
93 <td><span class="summary-sig"><a href="ats3.parsers.MmpFileParser-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>)</span><br /> |
|
94 x.__init__(...) initializes x; see x.__class__.__doc__ for signature</td> |
|
95 <td align="right" valign="top"> |
|
96 <span class="codelink"><a href="ats3.parsers-pysrc.html#MmpFileParser.__init__">source code</a></span> |
|
97 |
|
98 </td> |
|
99 </tr> |
|
100 </table> |
|
101 |
|
102 </td> |
|
103 </tr> |
|
104 <tr> |
|
105 <td width="15%" align="right" valign="top" class="summary"> |
|
106 <span class="summary-type"> </span> |
|
107 </td><td class="summary"> |
|
108 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
109 <tr> |
|
110 <td><span class="summary-sig"><a href="ats3.parsers.MmpFileParser-class.html#get_target_filetype" class="summary-sig-name">get_target_filetype</a>(<span class="summary-sig-arg">self</span>, |
|
111 <span class="summary-sig-arg">path_to_mmp</span>=<span class="summary-sig-default">None</span>)</span><br /> |
|
112 Filetype given using TARGETTYPE in .mmp file is returned.</td> |
|
113 <td align="right" valign="top"> |
|
114 <span class="codelink"><a href="ats3.parsers-pysrc.html#MmpFileParser.get_target_filetype">source code</a></span> |
|
115 |
|
116 </td> |
|
117 </tr> |
|
118 </table> |
|
119 |
|
120 </td> |
|
121 </tr> |
|
122 <tr> |
|
123 <td width="15%" align="right" valign="top" class="summary"> |
|
124 <span class="summary-type"> </span> |
|
125 </td><td class="summary"> |
|
126 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
127 <tr> |
|
128 <td><span class="summary-sig"><a href="ats3.parsers.MmpFileParser-class.html#get_target_filename" class="summary-sig-name">get_target_filename</a>(<span class="summary-sig-arg">self</span>, |
|
129 <span class="summary-sig-arg">path_to_mmp</span>=<span class="summary-sig-default">None</span>)</span><br /> |
|
130 Filename given using TARGET in .mmp file is returned |
|
131 If "c:path ommp" is a location where mmp file is stored |
|
132 get_target_filename("c:path ommp")</td> |
|
133 <td align="right" valign="top"> |
|
134 <span class="codelink"><a href="ats3.parsers-pysrc.html#MmpFileParser.get_target_filename">source code</a></span> |
|
135 |
|
136 </td> |
|
137 </tr> |
|
138 </table> |
|
139 |
|
140 </td> |
|
141 </tr> |
|
142 <tr> |
|
143 <td width="15%" align="right" valign="top" class="summary"> |
|
144 <span class="summary-type"> </span> |
|
145 </td><td class="summary"> |
|
146 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
147 <tr> |
|
148 <td><span class="summary-sig"><a href="ats3.parsers.MmpFileParser-class.html#get_libraries" class="summary-sig-name">get_libraries</a>(<span class="summary-sig-arg">self</span>, |
|
149 <span class="summary-sig-arg">path_to_mmp</span>=<span class="summary-sig-default">None</span>)</span><br /> |
|
150 Libraries listed in the MMP file are returned in a list |
|
151 If "c:path ommp" is a location where mmp file is stored |
|
152 get_libraries("c:path ommp")</td> |
|
153 <td align="right" valign="top"> |
|
154 <span class="codelink"><a href="ats3.parsers-pysrc.html#MmpFileParser.get_libraries">source code</a></span> |
|
155 |
|
156 </td> |
|
157 </tr> |
|
158 </table> |
|
159 |
|
160 </td> |
|
161 </tr> |
|
162 <tr> |
|
163 <td width="15%" align="right" valign="top" class="summary"> |
|
164 <span class="summary-type"> </span> |
|
165 </td><td class="summary"> |
|
166 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
167 <tr> |
|
168 <td><span class="summary-sig"><a href="ats3.parsers.MmpFileParser-class.html#get_harness" class="summary-sig-name">get_harness</a>(<span class="summary-sig-arg">self</span>, |
|
169 <span class="summary-sig-arg">path_to_mmp</span>=<span class="summary-sig-default">None</span>)</span><br /> |
|
170 Returns harness of test component |
|
171 If "c:path ommp" is a location where mmp file is stored |
|
172 get_harness("c:path ommp")</td> |
|
173 <td align="right" valign="top"> |
|
174 <span class="codelink"><a href="ats3.parsers-pysrc.html#MmpFileParser.get_harness">source code</a></span> |
|
175 |
|
176 </td> |
|
177 </tr> |
|
178 </table> |
|
179 |
|
180 </td> |
|
181 </tr> |
|
182 <tr> |
|
183 <td width="15%" align="right" valign="top" class="summary"> |
|
184 <span class="summary-type"> </span> |
|
185 </td><td class="summary"> |
|
186 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
187 <tr> |
|
188 <td><span class="summary-sig"><a href="ats3.parsers.MmpFileParser-class.html#get_dll_type" class="summary-sig-name">get_dll_type</a>(<span class="summary-sig-arg">self</span>, |
|
189 <span class="summary-sig-arg">path_to_mmp</span>=<span class="summary-sig-default">None</span>)</span><br /> |
|
190 Returns type of test whether 'executable' or 'dependent' (dependent can be a stub or plugin) |
|
191 If "c:path ommp" is a location where mmp file is stored |
|
192 get_dll_type("c:path ommp")</td> |
|
193 <td align="right" valign="top"> |
|
194 <span class="codelink"><a href="ats3.parsers-pysrc.html#MmpFileParser.get_dll_type">source code</a></span> |
|
195 |
|
196 </td> |
|
197 </tr> |
|
198 </table> |
|
199 |
|
200 </td> |
|
201 </tr> |
|
202 <tr> |
|
203 <td width="15%" align="right" valign="top" class="summary"> |
|
204 <span class="summary-type"> </span> |
|
205 </td><td class="summary"> |
|
206 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
207 <tr> |
|
208 <td><span class="summary-sig"><a name="read_information_from_mmp"></a><span class="summary-sig-name">read_information_from_mmp</span>(<span class="summary-sig-arg">self</span>, |
|
209 <span class="summary-sig-arg">path_to_mmp</span>=<span class="summary-sig-default">None</span>, |
|
210 <span class="summary-sig-arg">flag</span>=<span class="summary-sig-default">0</span>)</span><br /> |
|
211 Returns wanted information - user can define |
|
212 the wanted information level by setting a flag |
|
213 value following way: |
|
214 0 - (targetfilename, filetype, libraries, harness) |
|
215 1 - (targetfilename, filetype, libraries) |
|
216 2 - (targetfilename, filetype) |
|
217 3 - targetfilename |
|
218 4 - filetype |
|
219 5 - libraries |
|
220 6 - harness (in case of test component) |
|
221 7 - mmpfilename</td> |
|
222 <td align="right" valign="top"> |
|
223 <span class="codelink"><a href="ats3.parsers-pysrc.html#MmpFileParser.read_information_from_mmp">source code</a></span> |
|
224 |
|
225 </td> |
|
226 </tr> |
|
227 </table> |
|
228 |
|
229 </td> |
|
230 </tr> |
|
231 <tr> |
|
232 <td colspan="2" class="summary"> |
|
233 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: |
|
234 <code>__delattr__</code>, |
|
235 <code>__getattribute__</code>, |
|
236 <code>__hash__</code>, |
|
237 <code>__new__</code>, |
|
238 <code>__reduce__</code>, |
|
239 <code>__reduce_ex__</code>, |
|
240 <code>__repr__</code>, |
|
241 <code>__setattr__</code>, |
|
242 <code>__str__</code> |
|
243 </p> |
|
244 </td> |
|
245 </tr> |
|
246 </table> |
|
247 <!-- ==================== PROPERTIES ==================== --> |
|
248 <a name="section-Properties"></a> |
|
249 <table class="summary" border="1" cellpadding="3" |
|
250 cellspacing="0" width="100%" bgcolor="white"> |
|
251 <tr bgcolor="#70b0f0" class="table-header"> |
|
252 <td colspan="2" class="table-header"> |
|
253 <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
|
254 <tr valign="top"> |
|
255 <td align="left"><span class="table-header">Properties</span></td> |
|
256 <td align="right" valign="top" |
|
257 ><span class="options">[<a href="#section-Properties" |
|
258 class="privatelink" onclick="toggle_private();" |
|
259 >hide private</a>]</span></td> |
|
260 </tr> |
|
261 </table> |
|
262 </td> |
|
263 </tr> |
|
264 <tr> |
|
265 <td colspan="2" class="summary"> |
|
266 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: |
|
267 <code>__class__</code> |
|
268 </p> |
|
269 </td> |
|
270 </tr> |
|
271 </table> |
|
272 <!-- ==================== METHOD DETAILS ==================== --> |
|
273 <a name="section-MethodDetails"></a> |
|
274 <table class="details" border="1" cellpadding="3" |
|
275 cellspacing="0" width="100%" bgcolor="white"> |
|
276 <tr bgcolor="#70b0f0" class="table-header"> |
|
277 <td colspan="2" class="table-header"> |
|
278 <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
|
279 <tr valign="top"> |
|
280 <td align="left"><span class="table-header">Method Details</span></td> |
|
281 <td align="right" valign="top" |
|
282 ><span class="options">[<a href="#section-MethodDetails" |
|
283 class="privatelink" onclick="toggle_private();" |
|
284 >hide private</a>]</span></td> |
|
285 </tr> |
|
286 </table> |
|
287 </td> |
|
288 </tr> |
|
289 </table> |
|
290 <a name="__init__"></a> |
|
291 <div> |
|
292 <table class="details" border="1" cellpadding="3" |
|
293 cellspacing="0" width="100%" bgcolor="white"> |
|
294 <tr><td> |
|
295 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
296 <tr valign="top"><td> |
|
297 <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>)</span> |
|
298 <br /><em class="fname">(Constructor)</em> |
|
299 </h3> |
|
300 </td><td align="right" valign="top" |
|
301 ><span class="codelink"><a href="ats3.parsers-pysrc.html#MmpFileParser.__init__">source code</a></span> |
|
302 </td> |
|
303 </table> |
|
304 |
|
305 x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|
306 <dl class="fields"> |
|
307 <dt>Overrides: |
|
308 object.__init__ |
|
309 <dd><em class="note">(inherited documentation)</em></dd> |
|
310 </dt> |
|
311 </dl> |
|
312 </td></tr></table> |
|
313 </div> |
|
314 <a name="get_target_filetype"></a> |
|
315 <div> |
|
316 <table class="details" border="1" cellpadding="3" |
|
317 cellspacing="0" width="100%" bgcolor="white"> |
|
318 <tr><td> |
|
319 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
320 <tr valign="top"><td> |
|
321 <h3 class="epydoc"><span class="sig"><span class="sig-name">get_target_filetype</span>(<span class="sig-arg">self</span>, |
|
322 <span class="sig-arg">path_to_mmp</span>=<span class="sig-default">None</span>)</span> |
|
323 </h3> |
|
324 </td><td align="right" valign="top" |
|
325 ><span class="codelink"><a href="ats3.parsers-pysrc.html#MmpFileParser.get_target_filetype">source code</a></span> |
|
326 </td> |
|
327 </table> |
|
328 |
|
329 <p>Filetype given using TARGETTYPE in .mmp file is returned. |
|
330 If "c:path ommp" is a location where mmp file is stored |
|
331 get_target_filetype("c:path ommp")</p> |
|
332 <p>if mmp file is not given, the function will try to find the file(s) on the given location with extension ".mmp"</p> |
|
333 <dl class="fields"> |
|
334 </dl> |
|
335 </td></tr></table> |
|
336 </div> |
|
337 <a name="get_target_filename"></a> |
|
338 <div> |
|
339 <table class="details" border="1" cellpadding="3" |
|
340 cellspacing="0" width="100%" bgcolor="white"> |
|
341 <tr><td> |
|
342 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
343 <tr valign="top"><td> |
|
344 <h3 class="epydoc"><span class="sig"><span class="sig-name">get_target_filename</span>(<span class="sig-arg">self</span>, |
|
345 <span class="sig-arg">path_to_mmp</span>=<span class="sig-default">None</span>)</span> |
|
346 </h3> |
|
347 </td><td align="right" valign="top" |
|
348 ><span class="codelink"><a href="ats3.parsers-pysrc.html#MmpFileParser.get_target_filename">source code</a></span> |
|
349 </td> |
|
350 </table> |
|
351 |
|
352 <p>Filename given using TARGET in .mmp file is returned |
|
353 If "c:path ommp" is a location where mmp file is stored |
|
354 get_target_filename("c:path ommp")</p> |
|
355 <p>if mmp file is not given, the function will try to find the file(s) on the given location with extension ".mmp"</p> |
|
356 <dl class="fields"> |
|
357 </dl> |
|
358 </td></tr></table> |
|
359 </div> |
|
360 <a name="get_libraries"></a> |
|
361 <div> |
|
362 <table class="details" border="1" cellpadding="3" |
|
363 cellspacing="0" width="100%" bgcolor="white"> |
|
364 <tr><td> |
|
365 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
366 <tr valign="top"><td> |
|
367 <h3 class="epydoc"><span class="sig"><span class="sig-name">get_libraries</span>(<span class="sig-arg">self</span>, |
|
368 <span class="sig-arg">path_to_mmp</span>=<span class="sig-default">None</span>)</span> |
|
369 </h3> |
|
370 </td><td align="right" valign="top" |
|
371 ><span class="codelink"><a href="ats3.parsers-pysrc.html#MmpFileParser.get_libraries">source code</a></span> |
|
372 </td> |
|
373 </table> |
|
374 |
|
375 <p>Libraries listed in the MMP file are returned in a list |
|
376 If "c:path ommp" is a location where mmp file is stored |
|
377 get_libraries("c:path ommp")</p> |
|
378 <p>if mmp file is not given, the function will try to find the file(s) on the given location with extension ".mmp"</p> |
|
379 <dl class="fields"> |
|
380 </dl> |
|
381 </td></tr></table> |
|
382 </div> |
|
383 <a name="get_harness"></a> |
|
384 <div> |
|
385 <table class="details" border="1" cellpadding="3" |
|
386 cellspacing="0" width="100%" bgcolor="white"> |
|
387 <tr><td> |
|
388 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
389 <tr valign="top"><td> |
|
390 <h3 class="epydoc"><span class="sig"><span class="sig-name">get_harness</span>(<span class="sig-arg">self</span>, |
|
391 <span class="sig-arg">path_to_mmp</span>=<span class="sig-default">None</span>)</span> |
|
392 </h3> |
|
393 </td><td align="right" valign="top" |
|
394 ><span class="codelink"><a href="ats3.parsers-pysrc.html#MmpFileParser.get_harness">source code</a></span> |
|
395 </td> |
|
396 </table> |
|
397 |
|
398 <p>Returns harness of test component |
|
399 If "c:path ommp" is a location where mmp file is stored |
|
400 get_harness("c:path ommp")</p> |
|
401 <p>if mmp file is not given, the function will try to find the file(s) on the given location with extension ".mmp"</p> |
|
402 <dl class="fields"> |
|
403 </dl> |
|
404 </td></tr></table> |
|
405 </div> |
|
406 <a name="get_dll_type"></a> |
|
407 <div> |
|
408 <table class="details" border="1" cellpadding="3" |
|
409 cellspacing="0" width="100%" bgcolor="white"> |
|
410 <tr><td> |
|
411 <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
|
412 <tr valign="top"><td> |
|
413 <h3 class="epydoc"><span class="sig"><span class="sig-name">get_dll_type</span>(<span class="sig-arg">self</span>, |
|
414 <span class="sig-arg">path_to_mmp</span>=<span class="sig-default">None</span>)</span> |
|
415 </h3> |
|
416 </td><td align="right" valign="top" |
|
417 ><span class="codelink"><a href="ats3.parsers-pysrc.html#MmpFileParser.get_dll_type">source code</a></span> |
|
418 </td> |
|
419 </table> |
|
420 |
|
421 <p>Returns type of test whether 'executable' or 'dependent' (dependent can be a stub or plugin) |
|
422 If "c:path ommp" is a location where mmp file is stored |
|
423 get_dll_type("c:path ommp")</p> |
|
424 <p>if mmp file is not given, the function will try to find the file(s) on the given location with extension ".mmp"</p> |
|
425 <dl class="fields"> |
|
426 </dl> |
|
427 </td></tr></table> |
|
428 </div> |
|
429 <br /> |
|
430 <!-- ==================== NAVIGATION BAR ==================== --> |
|
431 <table class="navbar" border="0" width="100%" cellpadding="0" |
|
432 bgcolor="#a0c0ff" cellspacing="0"> |
|
433 <tr valign="middle"> |
|
434 |
|
435 <!-- Tree link --> |
|
436 <th> <a |
|
437 href="module-tree.html">Trees</a> </th> |
|
438 |
|
439 <!-- Index link --> |
|
440 <th> <a |
|
441 href="identifier-index.html">Indices</a> </th> |
|
442 |
|
443 <!-- Help link --> |
|
444 <th> <a |
|
445 href="help.html">Help</a> </th> |
|
446 |
|
447 <th class="navbar" width="100%"></th> |
|
448 </tr> |
|
449 </table> |
|
450 <table border="0" cellpadding="0" cellspacing="0" width="100%%"> |
|
451 <tr> |
|
452 <td align="left" class="footer"> |
|
453 Generated by Epydoc 3.0beta1 on Wed Sep 09 13:44:17 2009 |
|
454 </td> |
|
455 <td align="right" class="footer"> |
|
456 <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a> |
|
457 </td> |
|
458 </tr> |
|
459 </table> |
|
460 |
|
461 <script type="text/javascript"> |
|
462 <!-- |
|
463 // Private objects are initially displayed (because if |
|
464 // javascript is turned off then we want them to be |
|
465 // visible); but by default, we want to hide them. So hide |
|
466 // them unless we have a cookie that says to show them. |
|
467 checkCookie() |
|
468 // --> |
|
469 </script> |
|
470 |
|
471 </body> |
|
472 </html> |