source: trunk/source/interfaces/html/d1/d4c/classG4UIcsh.html @ 818

Last change on this file since 818 was 571, checked in by garnier, 17 years ago

r581@mac-90108: laurentgarnier | 2007-08-17 17:30:26 +0200
deplacement de frame

  • Property svn:mime-type set to text/html
File size: 10.0 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3<title>G4UIcsh Class Reference</title>
4<link href="../../doxygen.css" rel="stylesheet" type="text/css">
5<link href="../../tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.2 -->
8<div class="tabs">
9  <ul>
10    <li><a href="../../index.html"><span>Main&nbsp;Page</span></a></li>
11    <li class="current"><a href="../../annotated.html"><span>Classes</span></a></li>
12    <li><a href="../../files.html"><span>Files</span></a></li>
13  </ul>
14</div>
15<div class="tabs">
16  <ul>
17    <li><a href="../../annotated.html"><span>Class&nbsp;List</span></a></li>
18    <li><a href="../../hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
19    <li><a href="../../functions.html"><span>Class&nbsp;Members</span></a></li>
20  </ul>
21</div>
22<h1>G4UIcsh Class Reference</h1><!-- doxytag: class="G4UIcsh" --><!-- doxytag: inherits="G4VUIshell" --><code>#include &lt;<a class="el" href="../../d2/dc0/G4UIcsh_8hh-source.html">G4UIcsh.hh</a>&gt;</code>
23<p>
24Inheritance diagram for G4UIcsh:<p><center><img src="../../d1/de7/classG4UIcsh__inherit__graph.png" border="0" usemap="#de/dc3/G4UIcsh__inherit__map" alt="Inheritance graph"></center>
25<map name="de/dc3/G4UIcsh__inherit__map">
26<area shape="rect" href="../../d8/def/classG4VUIshell.html" title="{G4VUIshell\n|# promptSetting\l# promptString\l# nColumn\l# lsColorFlag\l# directoryColor\l# commandColor\l# currentCommandDir\l|+ G4VUIshell()\l+ ~G4VUIshell()\l+ SetNColumn()\l+ SetPrompt()\l+ SetCurrentDirectory()\l+ ShowCurrentDirectory()\l+ ListCommand()\l+ GetCommandLine()\l# MakePrompt()\l# GetCommandTree()\l# GetAbsCommandDirPath()\l# GetCommandPathTail()\l}" alt="" coords="8,8,202,360"></map>
27<center><font size="2">[<a href="../../graph_legend.html">legend</a>]</font></center>Collaboration diagram for G4UIcsh:<p><center><img src="../../d7/d45/classG4UIcsh__coll__graph.png" border="0" usemap="#d2/d72/G4UIcsh__coll__map" alt="Collaboration graph"></center>
28<map name="d2/d72/G4UIcsh__coll__map">
29<area shape="rect" href="../../d8/def/classG4VUIshell.html" title="{G4VUIshell\n|# promptSetting\l# promptString\l# nColumn\l# lsColorFlag\l# directoryColor\l# commandColor\l# currentCommandDir\l|+ G4VUIshell()\l+ ~G4VUIshell()\l+ SetNColumn()\l+ SetPrompt()\l+ SetCurrentDirectory()\l+ ShowCurrentDirectory()\l+ ListCommand()\l+ GetCommandLine()\l# MakePrompt()\l# GetCommandTree()\l# GetAbsCommandDirPath()\l# GetCommandPathTail()\l}" alt="" coords="8,8,202,360"></map>
30<center><font size="2">[<a href="../../graph_legend.html">legend</a>]</font></center><a href="../../dc/d55/classG4UIcsh-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
31<tr><td></td></tr>
32<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
33<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d4c/classG4UIcsh.html#0335c60a586808796fb5d117332f5dfd">G4UIcsh</a> (const G4String &amp;prompt=&quot;%s&gt; &quot;)</td></tr>
34
35<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d4c/classG4UIcsh.html#f6dfb997f08499551f25651049b053b3">~G4UIcsh</a> ()</td></tr>
36
37<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual G4String&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d4c/classG4UIcsh.html#6752efacf4217c2a0285bc0da4c6690e">GetCommandLine</a> (const char *msg=0)</td></tr>
38
39</table>
40<hr><a name="_details"></a><h2>Detailed Description</h2>
41
42<p>
43
44<p>
45Definition at line <a class="el" href="../../d2/dc0/G4UIcsh_8hh-source.html#l00041">41</a> of file <a class="el" href="../../d2/dc0/G4UIcsh_8hh-source.html">G4UIcsh.hh</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
46<a class="anchor" name="0335c60a586808796fb5d117332f5dfd"></a><!-- doxytag: member="G4UIcsh::G4UIcsh" ref="0335c60a586808796fb5d117332f5dfd" args="(const G4String &amp;prompt=&quot;%s&gt; &quot;)" -->
47<div class="memitem">
48<div class="memproto">
49      <table class="memname">
50        <tr>
51          <td class="memname">G4UIcsh::G4UIcsh           </td>
52          <td>(</td>
53          <td class="paramtype">const G4String &amp;&nbsp;</td>
54          <td class="paramname"> <em>prompt</em> = <code>&quot;%s&gt;&nbsp;&quot;</code>          </td>
55          <td>&nbsp;)&nbsp;</td>
56          <td width="100%"></td>
57        </tr>
58      </table>
59</div>
60<div class="memdoc">
61
62<p>
63
64<p>
65Definition at line <a class="el" href="../../df/d19/G4UIcsh_8cc-source.html#l00034">34</a> of file <a class="el" href="../../df/d19/G4UIcsh_8cc-source.html">G4UIcsh.cc</a>.<div class="fragment"><pre class="fragment"><a name="l00035"></a>00035  : <a class="code" href="../../d8/def/classG4VUIshell.html#b6f3a727704faf324f8fca928aafdb51">G4VUIshell</a>(prompt)
66<a name="l00037"></a>00037 {
67<a name="l00038"></a>00038 }
68</pre></div>
69<p>
70
71</div>
72</div><p>
73<a class="anchor" name="f6dfb997f08499551f25651049b053b3"></a><!-- doxytag: member="G4UIcsh::~G4UIcsh" ref="f6dfb997f08499551f25651049b053b3" args="()" -->
74<div class="memitem">
75<div class="memproto">
76      <table class="memname">
77        <tr>
78          <td class="memname">G4UIcsh::~G4UIcsh           </td>
79          <td>(</td>
80          <td class="paramname">          </td>
81          <td>&nbsp;)&nbsp;</td>
82          <td width="100%"></td>
83        </tr>
84      </table>
85</div>
86<div class="memdoc">
87
88<p>
89
90<p>
91Definition at line <a class="el" href="../../df/d19/G4UIcsh_8cc-source.html#l00041">41</a> of file <a class="el" href="../../df/d19/G4UIcsh_8cc-source.html">G4UIcsh.cc</a>.<div class="fragment"><pre class="fragment"><a name="l00043"></a>00043 {
92<a name="l00044"></a>00044 }
93</pre></div>
94<p>
95
96</div>
97</div><p>
98<hr><h2>Member Function Documentation</h2>
99<a class="anchor" name="6752efacf4217c2a0285bc0da4c6690e"></a><!-- doxytag: member="G4UIcsh::GetCommandLine" ref="6752efacf4217c2a0285bc0da4c6690e" args="(const char *msg=0)" -->
100<div class="memitem">
101<div class="memproto">
102      <table class="memname">
103        <tr>
104          <td class="memname">G4String G4UIcsh::GetCommandLine           </td>
105          <td>(</td>
106          <td class="paramtype">const char *&nbsp;</td>
107          <td class="paramname"> <em>msg</em> = <code>0</code>          </td>
108          <td>&nbsp;)&nbsp;</td>
109          <td width="100%"><code> [virtual]</code></td>
110        </tr>
111      </table>
112</div>
113<div class="memdoc">
114
115<p>
116
117<p>
118Implements <a class="el" href="../../d8/def/classG4VUIshell.html#a1e6cfb6c13c51746f3978265340ac63">G4VUIshell</a>.
119<p>
120Definition at line <a class="el" href="../../df/d19/G4UIcsh_8cc-source.html#l00048">48</a> of file <a class="el" href="../../df/d19/G4UIcsh_8cc-source.html">G4UIcsh.cc</a>.
121<p>
122References <a class="el" href="../../d9/df9/G4VUIshell_8cc-source.html#l00062">G4VUIshell::MakePrompt()</a>, and <a class="el" href="../../d5/d69/G4VUIshell_8hh-source.html#l00062">G4VUIshell::promptString</a>.<div class="fragment"><pre class="fragment"><a name="l00050"></a>00050 {
123<a name="l00051"></a>00051   <a class="code" href="../../d8/def/classG4VUIshell.html#17d23c4ae4a07ca8d19c4c78622e697c">MakePrompt</a>(msg);
124<a name="l00052"></a>00052   G4cout &lt;&lt; <a class="code" href="../../d8/def/classG4VUIshell.html#b8d308d93dd6455ccc59be665746650d">promptString</a> &lt;&lt; std::flush;
125<a name="l00053"></a>00053
126<a name="l00054"></a>00054   G4String newCommand;
127<a name="l00055"></a>00055   newCommand.readLine(G4cin, FALSE);
128<a name="l00056"></a>00056   <span class="keywordflow">if</span> (!G4cin.good()) {
129<a name="l00057"></a>00057     G4cin.clear();
130<a name="l00058"></a>00058     newCommand= <span class="stringliteral">"exit"</span>;
131<a name="l00059"></a>00059     <span class="keywordflow">return</span> newCommand;
132<a name="l00060"></a>00060   }
133<a name="l00061"></a>00061   newCommand = newCommand.strip(1,<span class="charliteral">'\r'</span>); <span class="comment">// fix for odd behavior on Windows</span>
134<a name="l00062"></a>00062
135<a name="l00063"></a>00063   <span class="comment">// multi-line</span>
136<a name="l00064"></a>00064   <span class="keywordflow">while</span>( (newCommand.length() &gt; 0) &amp;&amp;
137<a name="l00065"></a>00065          (newCommand[newCommand.length()-1] == <span class="charliteral">'_'</span>) ) {
138<a name="l00066"></a>00066     G4String newLine;
139<a name="l00067"></a>00067     newCommand.remove(newCommand.length()-1);
140<a name="l00068"></a>00068     newLine.readLine(G4cin, FALSE);
141<a name="l00069"></a>00069     <span class="keywordflow">if</span> (!G4cin.good()) {
142<a name="l00070"></a>00070       G4cin.clear();
143<a name="l00071"></a>00071       newCommand= <span class="stringliteral">"exit"</span>;
144<a name="l00072"></a>00072       <span class="keywordflow">return</span> newCommand;
145<a name="l00073"></a>00073     }
146<a name="l00074"></a>00074     newCommand.append(newLine);
147<a name="l00075"></a>00075   }
148<a name="l00076"></a>00076   
149<a name="l00077"></a>00077   <span class="keywordflow">return</span> newCommand;
150<a name="l00078"></a>00078 }
151</pre></div>
152<p>
153
154<p>
155Here is the call graph for this function:<p><center><img src="../../d1/d4c/classG4UIcsh_6752efacf4217c2a0285bc0da4c6690e_cgraph.png" border="0" usemap="#d1/d4c/classG4UIcsh_6752efacf4217c2a0285bc0da4c6690e_cgraph_map" alt=""></center>
156<map name="d1/d4c/classG4UIcsh_6752efacf4217c2a0285bc0da4c6690e_cgraph_map">
157<area shape="rect" href="../../d8/def/classG4VUIshell.html#17d23c4ae4a07ca8d19c4c78622e697c" title="G4VUIshell::MakePrompt" alt="" coords="250,8,426,34"></map>
158
159</div>
160</div><p>
161<hr>The documentation for this class was generated from the following files:<ul>
162<li><a class="el" href="../../d2/dc0/G4UIcsh_8hh-source.html">G4UIcsh.hh</a><li><a class="el" href="../../df/d19/G4UIcsh_8cc-source.html">G4UIcsh.cc</a></ul>
163<hr size="1"><address style="text-align: right;"><small>Generated on Fri Jun 22 10:26:22 2007 by&nbsp;
164<a href="http://www.doxygen.org/index.html">
165<img src="../../doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
166</body>
167</html>
Note: See TracBrowser for help on using the repository browser.