]>
Commit | Line | Data |
---|---|---|
9a49f543 | 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>AliHLTPHOS: OnlineDisplay/main.cxx File Reference</title> | |
4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> | |
5 | </head><body> | |
6 | <!-- Generated by Doxygen 1.3.9.1 --> | |
7 | <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> | |
8 | <div class="nav"> | |
9 | <a class="el" href="dir_000001.html">OnlineDisplay</a></div> | |
10 | <h1>main.cxx File Reference</h1> | |
11 | <p> | |
12 | <code>#include "<a class="el" href="AliHLTPHOSOnlineDisplay_8h-source.html">AliHLTPHOSOnlineDisplay.h</a>"</code><br> | |
13 | <code>#include <stdexcept></code><br> | |
14 | <code>#include <TSystem.h></code><br> | |
15 | <code>#include <TApplication.h></code><br> | |
16 | <code>#include "Rtypes.h"</code><br> | |
17 | <code>#include <TString.h></code><br> | |
18 | ||
19 | <p> | |
20 | <a href="main_8cxx-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> | |
21 | <tr><td></td></tr> | |
22 | <tr><td colspan="2"><br><h2>Functions</h2></td></tr> | |
23 | <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="main_8cxx.html#a0">main</a> (int argc, char **argv)</td></tr> | |
24 | ||
25 | </table> | |
26 | <hr><h2>Function Documentation</h2> | |
27 | <a class="anchor" name="a0" doxytag="main.cxx::main"></a><p> | |
28 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> | |
29 | <tr> | |
30 | <td class="mdRow"> | |
31 | <table cellpadding="0" cellspacing="0" border="0"> | |
32 | <tr> | |
33 | <td class="md" nowrap valign="top">int main </td> | |
34 | <td class="md" valign="top">( </td> | |
35 | <td class="md" nowrap valign="top">int </td> | |
36 | <td class="mdname" nowrap> <em>argc</em>, </td> | |
37 | </tr> | |
38 | <tr> | |
39 | <td class="md" nowrap align="right"></td> | |
40 | <td class="md"></td> | |
41 | <td class="md" nowrap>char ** </td> | |
42 | <td class="mdname" nowrap> <em>argv</em></td> | |
43 | </tr> | |
44 | <tr> | |
45 | <td class="md"></td> | |
46 | <td class="md">) </td> | |
47 | <td class="md" colspan="2"></td> | |
48 | </tr> | |
49 | </table> | |
50 | </td> | |
51 | </tr> | |
52 | </table> | |
53 | <table cellspacing="5" cellpadding="0" border="0"> | |
54 | <tr> | |
55 | <td> | |
56 | | |
57 | </td> | |
58 | <td> | |
59 | ||
60 | <p> | |
61 | ||
62 | <p> | |
63 | Definition at line <a class="el" href="main_8cxx-source.html#l00030">30</a> of file <a class="el" href="main_8cxx-source.html">main.cxx</a>. | |
64 | <p> | |
65 | References <a class="el" href="AliHLTPHOSOnlineDisplay_8cxx-source.html#l00116">AliHLTPHOSOnlineDisplay::Instance()</a>, and <a class="el" href="AliHLTPHOSOnlineDisplay_8cxx-source.html#l00306">AliHLTPHOSOnlineDisplay::ScanArguments()</a>.<div class="fragment"><pre class="fragment">00031 { | |
66 | 00032 | |
67 | 00033 <span class="comment">// AliHLTPHOSOnlineDisplay* onlineDisplay = new AliHLTPHOSOnlineDisplay("alice3", 42001); </span> | |
68 | 00034 | |
69 | 00035 <span class="keywordflow">if</span>(!<a class="code" href="classAliHLTPHOSOnlineDisplay.html#e0">AliHLTPHOSOnlineDisplay::ScanArguments</a>(argc, argv)) | |
70 | 00036 { | |
71 | 00037 | |
72 | 00038 <span class="keywordflow">try</span> | |
73 | 00039 { | |
74 | 00040 TApplication app(<span class="stringliteral">"app"</span>, 0, 0); | |
75 | 00041 <span class="comment">// AliHLTPHOSOnlineDisplay* phosDisplayPtr = new AliHLTPHOSOnlineDisplay();</span> | |
76 | 00042 <span class="comment">// AliHLTPHOSOnlineDisplay* phosDisplayPtr = AliHLTPHOSOnlineDisplay::Instance();</span> | |
77 | 00043 <a class="code" href="classAliHLTPHOSOnlineDisplay.html#e1">AliHLTPHOSOnlineDisplay::Instance</a>(); | |
78 | 00044 app.Run(); | |
79 | 00045 } | |
80 | 00046 | |
81 | 00047 <span class="keywordflow">catch</span> (std::exception& e) | |
82 | 00048 { | |
83 | 00049 <span class="comment">// std::cerr << e.what() << std::endl;</span> | |
84 | 00050 <span class="keywordflow">return</span> 1; | |
85 | 00051 } | |
86 | 00052 <span class="keywordflow">return</span> 0; | |
87 | 00053 } | |
88 | 00054 <span class="keywordflow">else</span> | |
89 | 00055 { | |
90 | 00056 <span class="keywordflow">return</span> -1; | |
91 | 00057 } | |
92 | 00058 | |
93 | 00059 } | |
94 | </pre></div> | |
95 | <p> | |
96 | </td> | |
97 | </tr> | |
98 | </table> | |
99 | <hr size="1"><address style="align: right;"><small>Generated on Fri May 4 04:49:52 2007 for AliHLTPHOS by | |
100 | <a href="http://www.doxygen.org/index.html"> | |
101 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address> | |
102 | </body> | |
103 | </html> |