classPVRShellCommandLine.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
  3. <title>PowerVR SDK</title>
  4. <link href="doxygen.css" rel="stylesheet" type="text/css">
  5. <link href="tabs.css" rel="stylesheet" type="text/css">
  6. <table width="100%">
  7. <tr>
  8. <td width="33%">
  9. <p align="left">&nbsp;<a href="http://www.imgtec.com"><img border="0" src="IMGLogo.jpg" width="200" height="30"></a></p>
  10. </td>
  11. <td width="33%">
  12. <p align="center"><font color="#808080" face="Arial" size="2">PowerVR Software Development Kit</a></font></p>
  13. </td>
  14. <td width="34%">
  15. <p align="right"><a href="http://www.powervr.com"><img border="0" src="PVRlogo.jpg" width="200" height="27"></a></p>
  16. </td>
  17. </tr>
  18. </table>
  19. <hr>
  20. </head><body>
  21. <!-- Generated by Doxygen 1.3.6 -->
  22. <div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
  23. <h1>PVRShellCommandLine Class Reference</h1>Command-line interpreter.
  24. <a href="#_details">More...</a>
  25. <p>
  26. <code>#include &lt;<a class="el" href="PVRShellImpl_8h-source.html">PVRShellImpl.h</a>&gt;</code>
  27. <p>
  28. Collaboration diagram for PVRShellCommandLine:<p><center><img src="classPVRShellCommandLine__coll__graph.png" border="0" usemap="#PVRShellCommandLine__coll__map" alt="Collaboration graph"></center>
  29. <map name="PVRShellCommandLine__coll__map">
  30. <area href="structSCmdLineOpt.html" shape="rect" coords="36,7,143,34" alt="">
  31. </map>
  32. <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classPVRShellCommandLine-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
  33. <tr><td></td></tr>
  34. <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
  35. <tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPVRShellCommandLine.html#a0">PVRShellCommandLine</a> ()</td></tr>
  36. <tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPVRShellCommandLine.html#a1">~PVRShellCommandLine</a> ()</td></tr>
  37. <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPVRShellCommandLine.html#a2">Set</a> (const char *pStr)</td></tr>
  38. <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPVRShellCommandLine.html#a3">Prefix</a> (const char *pStr)</td></tr>
  39. <tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPVRShellCommandLine.html#a4">PrefixFromFile</a> (const char *pFileName)</td></tr>
  40. <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPVRShellCommandLine.html#a5">Parse</a> ()</td></tr>
  41. <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPVRShellCommandLine.html#a6">Apply</a> (<a class="el" href="classPVRShell.html">PVRShell</a> &amp;shell)</td></tr>
  42. <tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
  43. <tr><td class="memItemLeft" nowrap align=right valign=top>char *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPVRShellCommandLine.html#o0">m_psOrig</a></td></tr>
  44. <tr><td class="memItemLeft" nowrap align=right valign=top>char *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPVRShellCommandLine.html#o1">m_psSplit</a></td></tr>
  45. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structSCmdLineOpt.html">SCmdLineOpt</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPVRShellCommandLine.html#o2">m_pOpt</a></td></tr>
  46. <tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPVRShellCommandLine.html#o3">m_nOptLen</a></td></tr>
  47. <tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPVRShellCommandLine.html#o4">m_nOptMax</a></td></tr>
  48. </table>
  49. <hr><a name="_details"></a><h2>Detailed Description</h2>
  50. Command-line interpreter.
  51. <p>
  52. <hr><h2>Constructor &amp; Destructor Documentation</h2>
  53. <a class="anchor" name="a0" doxytag="PVRShellCommandLine::PVRShellCommandLine" ></a><p>
  54. <br><br><h3>PVRShellCommandLine</h3><br><div>
  55. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  56. <tr>
  57. <td class="mdRow">
  58. <table cellpadding="0" cellspacing="0" border="0">
  59. <tr>
  60. <td class="md" nowrap valign="top"> PVRShellCommandLine::PVRShellCommandLine </td>
  61. <td class="md" valign="top">(&nbsp;</td>
  62. <td class="mdname1" valign="top" nowrap> </td>
  63. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  64. <td class="md" nowrap></td>
  65. </tr>
  66. </table>
  67. </td>
  68. </tr>
  69. </table>
  70. <table cellspacing=5 cellpadding=0 border=0>
  71. <tr>
  72. <td>
  73. &nbsp;
  74. </td>
  75. <td>
  76. <p>
  77. <dl compact><dt><b>Description:</b></dt><dd>Constructor </dd></dl>
  78. </td>
  79. </tr>
  80. </table>
  81. <a class="anchor" name="a1" doxytag="PVRShellCommandLine::~PVRShellCommandLine" ></a><p>
  82. <br><br><h3>~PVRShellCommandLine</h3><br><div>
  83. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  84. <tr>
  85. <td class="mdRow">
  86. <table cellpadding="0" cellspacing="0" border="0">
  87. <tr>
  88. <td class="md" nowrap valign="top"> PVRShellCommandLine::~<a class="el" href="classPVRShellCommandLine.html">PVRShellCommandLine</a> </td>
  89. <td class="md" valign="top">(&nbsp;</td>
  90. <td class="mdname1" valign="top" nowrap> </td>
  91. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  92. <td class="md" nowrap></td>
  93. </tr>
  94. </table>
  95. </td>
  96. </tr>
  97. </table>
  98. <table cellspacing=5 cellpadding=0 border=0>
  99. <tr>
  100. <td>
  101. &nbsp;
  102. </td>
  103. <td>
  104. <p>
  105. <dl compact><dt><b>Description:</b></dt><dd>Destructor </dd></dl>
  106. </td>
  107. </tr>
  108. </table>
  109. <hr><h2>Member Function Documentation</h2>
  110. <a class="anchor" name="a6" doxytag="PVRShellCommandLine::Apply" ></a><p>
  111. <br><br><h3>Apply</h3><br><div>
  112. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  113. <tr>
  114. <td class="mdRow">
  115. <table cellpadding="0" cellspacing="0" border="0">
  116. <tr>
  117. <td class="md" nowrap valign="top"> void PVRShellCommandLine::Apply </td>
  118. <td class="md" valign="top">(&nbsp;</td>
  119. <td class="md" nowrap valign="top"><a class="el" href="classPVRShell.html">PVRShell</a> &amp;&nbsp;</td>
  120. <td class="mdname1" valign="top" nowrap> <em>shell</em> </td>
  121. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  122. <td class="md" nowrap></td>
  123. </tr>
  124. </table>
  125. </td>
  126. </tr>
  127. </table>
  128. <table cellspacing=5 cellpadding=0 border=0>
  129. <tr>
  130. <td>
  131. &nbsp;
  132. </td>
  133. <td>
  134. <p>
  135. <dl compact><dt><b>Inputs:</b></dt><dd>
  136. <table border="0" cellspacing="2" cellpadding="0">
  137. <tr><td valign=top><em>shell</em>&nbsp;</td><td></td></tr>
  138. </table>
  139. </dl>
  140. <dl compact><dt><b>Description:</b></dt><dd>Apply the command-line options to shell </dd></dl>
  141. </td>
  142. </tr>
  143. </table>
  144. <p>
  145. Here is the call graph for this function:<p><center><img src="classPVRShellCommandLine_a6_cgraph.png" border="0" usemap="#classPVRShellCommandLine_a6_cgraph_map" alt=""></center>
  146. <map name="classPVRShellCommandLine_a6_cgraph_map">
  147. <area href="classPVRShell.html#a7" shape="rect" coords="263,7,428,33" alt="">
  148. </map>
  149. <a class="anchor" name="a5" doxytag="PVRShellCommandLine::Parse" ></a><p>
  150. <br><br><h3>Parse</h3><br><div>
  151. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  152. <tr>
  153. <td class="mdRow">
  154. <table cellpadding="0" cellspacing="0" border="0">
  155. <tr>
  156. <td class="md" nowrap valign="top"> void PVRShellCommandLine::Parse </td>
  157. <td class="md" valign="top">(&nbsp;</td>
  158. <td class="mdname1" valign="top" nowrap> </td>
  159. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  160. <td class="md" nowrap></td>
  161. </tr>
  162. </table>
  163. </td>
  164. </tr>
  165. </table>
  166. <table cellspacing=5 cellpadding=0 border=0>
  167. <tr>
  168. <td>
  169. &nbsp;
  170. </td>
  171. <td>
  172. <p>
  173. <dl compact><dt><b>Description:</b></dt><dd>Parse m_psOrig for command-line options and store them in m_pOpt </dd></dl>
  174. </td>
  175. </tr>
  176. </table>
  177. <a class="anchor" name="a3" doxytag="PVRShellCommandLine::Prefix" ></a><p>
  178. <br><br><h3>Prefix</h3><br><div>
  179. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  180. <tr>
  181. <td class="mdRow">
  182. <table cellpadding="0" cellspacing="0" border="0">
  183. <tr>
  184. <td class="md" nowrap valign="top"> void PVRShellCommandLine::Prefix </td>
  185. <td class="md" valign="top">(&nbsp;</td>
  186. <td class="md" nowrap valign="top">const char *&nbsp;</td>
  187. <td class="mdname1" valign="top" nowrap> <em>pStr</em> </td>
  188. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  189. <td class="md" nowrap></td>
  190. </tr>
  191. </table>
  192. </td>
  193. </tr>
  194. </table>
  195. <table cellspacing=5 cellpadding=0 border=0>
  196. <tr>
  197. <td>
  198. &nbsp;
  199. </td>
  200. <td>
  201. <p>
  202. <dl compact><dt><b>Inputs:</b></dt><dd>
  203. <table border="0" cellspacing="2" cellpadding="0">
  204. <tr><td valign=top><em>pStr</em>&nbsp;</td><td>Input string </td></tr>
  205. </table>
  206. </dl>
  207. <dl compact><dt><b>Description:</b></dt><dd>Prepend command-line options to m_psOrig </dd></dl>
  208. </td>
  209. </tr>
  210. </table>
  211. <a class="anchor" name="a4" doxytag="PVRShellCommandLine::PrefixFromFile" ></a><p>
  212. <br><br><h3>PrefixFromFile</h3><br><div>
  213. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  214. <tr>
  215. <td class="mdRow">
  216. <table cellpadding="0" cellspacing="0" border="0">
  217. <tr>
  218. <td class="md" nowrap valign="top"> bool PVRShellCommandLine::PrefixFromFile </td>
  219. <td class="md" valign="top">(&nbsp;</td>
  220. <td class="md" nowrap valign="top">const char *&nbsp;</td>
  221. <td class="mdname1" valign="top" nowrap> <em>pFileName</em> </td>
  222. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  223. <td class="md" nowrap></td>
  224. </tr>
  225. </table>
  226. </td>
  227. </tr>
  228. </table>
  229. <table cellspacing=5 cellpadding=0 border=0>
  230. <tr>
  231. <td>
  232. &nbsp;
  233. </td>
  234. <td>
  235. <p>
  236. <dl compact><dt><b>Inputs:</b></dt><dd>
  237. <table border="0" cellspacing="2" cellpadding="0">
  238. <tr><td valign=top><em>pFileName</em>&nbsp;</td><td>Input string </td></tr>
  239. </table>
  240. </dl>
  241. <dl compact><dt><b>Description:</b></dt><dd>Prepend command-line options to m_psOrig from a file </dd></dl>
  242. </td>
  243. </tr>
  244. </table>
  245. <a class="anchor" name="a2" doxytag="PVRShellCommandLine::Set" ></a><p>
  246. <br><br><h3>Set</h3><br><div>
  247. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  248. <tr>
  249. <td class="mdRow">
  250. <table cellpadding="0" cellspacing="0" border="0">
  251. <tr>
  252. <td class="md" nowrap valign="top"> void PVRShellCommandLine::Set </td>
  253. <td class="md" valign="top">(&nbsp;</td>
  254. <td class="md" nowrap valign="top">const char *&nbsp;</td>
  255. <td class="mdname1" valign="top" nowrap> <em>pStr</em> </td>
  256. <td class="md" valign="top">&nbsp;)&nbsp;</td>
  257. <td class="md" nowrap></td>
  258. </tr>
  259. </table>
  260. </td>
  261. </tr>
  262. </table>
  263. <table cellspacing=5 cellpadding=0 border=0>
  264. <tr>
  265. <td>
  266. &nbsp;
  267. </td>
  268. <td>
  269. <p>
  270. <dl compact><dt><b>Inputs:</b></dt><dd>
  271. <table border="0" cellspacing="2" cellpadding="0">
  272. <tr><td valign=top><em>pStr</em>&nbsp;</td><td>Input string </td></tr>
  273. </table>
  274. </dl>
  275. <dl compact><dt><b>Description:</b></dt><dd>Set command-line options to pStr </dd></dl>
  276. </td>
  277. </tr>
  278. </table>
  279. <hr><h2>Member Data Documentation</h2>
  280. <a class="anchor" name="o3" doxytag="PVRShellCommandLine::m_nOptLen" ></a><p>
  281. <br><br><h3>m_nOptLen</h3><br><div>
  282. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  283. <tr>
  284. <td class="mdRow">
  285. <table cellpadding="0" cellspacing="0" border="0">
  286. <tr>
  287. <td class="md" nowrap valign="top"> int <a class="el" href="classPVRShellCommandLine.html#o3">PVRShellCommandLine::m_nOptLen</a>
  288. </table>
  289. </td>
  290. </tr>
  291. </table>
  292. <table cellspacing=5 cellpadding=0 border=0>
  293. <tr>
  294. <td>
  295. &nbsp;
  296. </td>
  297. <td>
  298. <p>
  299. </td>
  300. </tr>
  301. </table>
  302. <a class="anchor" name="o4" doxytag="PVRShellCommandLine::m_nOptMax" ></a><p>
  303. <br><br><h3>m_nOptMax</h3><br><div>
  304. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  305. <tr>
  306. <td class="mdRow">
  307. <table cellpadding="0" cellspacing="0" border="0">
  308. <tr>
  309. <td class="md" nowrap valign="top"> int <a class="el" href="classPVRShellCommandLine.html#o4">PVRShellCommandLine::m_nOptMax</a>
  310. </table>
  311. </td>
  312. </tr>
  313. </table>
  314. <table cellspacing=5 cellpadding=0 border=0>
  315. <tr>
  316. <td>
  317. &nbsp;
  318. </td>
  319. <td>
  320. <p>
  321. </td>
  322. </tr>
  323. </table>
  324. <a class="anchor" name="o2" doxytag="PVRShellCommandLine::m_pOpt" ></a><p>
  325. <br><br><h3>m_pOpt</h3><br><div>
  326. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  327. <tr>
  328. <td class="mdRow">
  329. <table cellpadding="0" cellspacing="0" border="0">
  330. <tr>
  331. <td class="md" nowrap valign="top"> <a class="el" href="structSCmdLineOpt.html">SCmdLineOpt</a>* <a class="el" href="classPVRShellCommandLine.html#o2">PVRShellCommandLine::m_pOpt</a>
  332. </table>
  333. </td>
  334. </tr>
  335. </table>
  336. <table cellspacing=5 cellpadding=0 border=0>
  337. <tr>
  338. <td>
  339. &nbsp;
  340. </td>
  341. <td>
  342. <p>
  343. </td>
  344. </tr>
  345. </table>
  346. <a class="anchor" name="o0" doxytag="PVRShellCommandLine::m_psOrig" ></a><p>
  347. <br><br><h3>m_psOrig</h3><br><div>
  348. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  349. <tr>
  350. <td class="mdRow">
  351. <table cellpadding="0" cellspacing="0" border="0">
  352. <tr>
  353. <td class="md" nowrap valign="top"> char* <a class="el" href="classPVRShellCommandLine.html#o0">PVRShellCommandLine::m_psOrig</a>
  354. </table>
  355. </td>
  356. </tr>
  357. </table>
  358. <table cellspacing=5 cellpadding=0 border=0>
  359. <tr>
  360. <td>
  361. &nbsp;
  362. </td>
  363. <td>
  364. <p>
  365. </td>
  366. </tr>
  367. </table>
  368. <a class="anchor" name="o1" doxytag="PVRShellCommandLine::m_psSplit" ></a><p>
  369. <br><br><h3>m_psSplit</h3><br><div>
  370. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  371. <tr>
  372. <td class="mdRow">
  373. <table cellpadding="0" cellspacing="0" border="0">
  374. <tr>
  375. <td class="md" nowrap valign="top"> char * <a class="el" href="classPVRShellCommandLine.html#o1">PVRShellCommandLine::m_psSplit</a>
  376. </table>
  377. </td>
  378. </tr>
  379. </table>
  380. <table cellspacing=5 cellpadding=0 border=0>
  381. <tr>
  382. <td>
  383. &nbsp;
  384. </td>
  385. <td>
  386. <p>
  387. </td>
  388. </tr>
  389. </table>
  390. <hr>The documentation for this class was generated from the following files:<ul>
  391. <li><a class="el" href="PVRShellImpl_8h-source.html">PVRShellImpl.h</a><li><a class="el" href="PVRShell_8cpp.html">PVRShell.cpp</a></ul>
  392. <br>
  393. <br>
  394. <P align=left><FONT size=2><STRONG><A
  395. href="http://www.imgtec.com/powervr/insider/legal/index.asp">Copyright</A> ©
  396. 1999-2008, Imagination Technologies Ltd.</STRONG></FONT></P>
  397. <hr>
  398. <address style="align: left;"><small><FONT color=f0f>
  399. Generated by <a href="http://www.doxygen.org/index.html">DOXYGEN</a> 1.3.6</small></address>
  400. </body>
  401. </html>