File: a00044.html

package info (click to toggle)
omnievents 1%3A2.6.2-5
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 9,004 kB
  • ctags: 14,867
  • sloc: cpp: 7,676; python: 3,138; sh: 2,575; xml: 2,057; java: 1,409; makefile: 317; ansic: 9
file content (334 lines) | stat: -rw-r--r-- 14,566 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>OmniEvents: OmniEvents::Daemon Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.3-20050530 -->
<div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</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="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<div class="nav">
<a class="el" href="a00141.html">OmniEvents</a>::<a class="el" href="a00044.html">Daemon</a></div>
<h1>OmniEvents::Daemon Class Reference</h1><!-- doxytag: class="OmniEvents::Daemon" -->Interface class that contains various methods for running omniEvents as a background task.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="a00149.html">daemon.h</a>&gt;</code>
<p>
<a href="a00003.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00044.html#a0">Daemon</a> (int &amp;argc, char **&amp;argv)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00044.html#a1">~Daemon</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00044.html#a2">tracefile</a> (const char *val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set _tracefile.  <a href="#a2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00044.html#a3">pidfile</a> (const char *val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set _pidfile.  <a href="#a3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00044.html#a4">foreground</a> (bool val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set _foreground.  <a href="#a4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00044.html#a5">daemonize</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Redirects output streams to tracefile.  <a href="#a5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00044.html#a6">runningOk</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called to signal that all startup operations have completed OK.  <a href="#a6"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00044.html#d0">Daemon</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">No implementation.  <a href="#d0"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Interface class that contains various methods for running omniEvents as a background task. 
<p>

<p>
Definition at line <a class="el" href="a00149.html#l00032">32</a> of file <a class="el" href="a00149.html">daemon.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="d0"></a><!-- doxytag: member="OmniEvents::Daemon::Daemon" ref="d0" args="()" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">OmniEvents::Daemon::Daemon           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [private]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
No implementation. 
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="a0"></a><!-- doxytag: member="OmniEvents::Daemon::Daemon" ref="a0" args="(int &amp;argc, char **&amp;argv)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">OmniEvents::Daemon::Daemon           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>char **&amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>argv</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a00150.html#l00096">96</a> of file <a class="el" href="a00150.html">daemon_unix.cc</a>.
<p>
References <a class="el" href="a00151.html#l00043">OmniEvents::DaemonImpl::_foreground</a>, <a class="el" href="a00151.html#l00047">OmniEvents::DaemonImpl::_haveParent</a>, <a class="el" href="a00151.html#l00046">OmniEvents::DaemonImpl::_havePidfile</a>, <a class="el" href="a00151.html#l00048">OmniEvents::DaemonImpl::_haveSyslog</a>, <a class="el" href="a00151.html#l00044">OmniEvents::DaemonImpl::_pidfile</a>, <a class="el" href="a00151.html#l00045">OmniEvents::DaemonImpl::_pipe</a>, <a class="el" href="a00151.html#l00042">OmniEvents::DaemonImpl::_tracefile</a>, and <a class="el" href="a00150.html#l00094">OmniEvents::daemon</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a1"></a><!-- doxytag: member="OmniEvents::Daemon::~Daemon" ref="a1" args="()" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">OmniEvents::Daemon::~Daemon           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a00150.html#l00112">112</a> of file <a class="el" href="a00150.html">daemon_unix.cc</a>.
<p>
References <a class="el" href="a00150.html#l00094">OmniEvents::daemon</a>, and <a class="el" href="a00150.html#l00236">OmniEvents::DaemonImpl::shutdown()</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a5"></a><!-- doxytag: member="OmniEvents::Daemon::daemonize" ref="a5" args="()" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void OmniEvents::Daemon::daemonize           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Redirects output streams to tracefile. 
<p>

<p>
Definition at line <a class="el" href="a00150.html#l00110">110</a> of file <a class="el" href="a00150.html">daemon_unix.cc</a>.
<p>
References <a class="el" href="a00150.html#l00094">OmniEvents::daemon</a>, and <a class="el" href="a00150.html#l00158">OmniEvents::DaemonImpl::daemonize()</a>.
<p>
Referenced by <a class="el" href="a00169.html#l00065">main()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a4"></a><!-- doxytag: member="OmniEvents::Daemon::foreground" ref="a4" args="(bool val)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void OmniEvents::Daemon::foreground           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>val</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set _foreground. 
<p>

<p>
Definition at line <a class="el" href="a00150.html#l00109">109</a> of file <a class="el" href="a00150.html">daemon_unix.cc</a>.
<p>
References <a class="el" href="a00150.html#l00094">OmniEvents::daemon</a>, and <a class="el" href="a00150.html#l00137">OmniEvents::DaemonImpl::foreground()</a>.
<p>
Referenced by <a class="el" href="a00169.html#l00065">main()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a3"></a><!-- doxytag: member="OmniEvents::Daemon::pidfile" ref="a3" args="(const char *val)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void OmniEvents::Daemon::pidfile           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>val</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set _pidfile. 
<p>

<p>
Definition at line <a class="el" href="a00150.html#l00108">108</a> of file <a class="el" href="a00150.html">daemon_unix.cc</a>.
<p>
References <a class="el" href="a00150.html#l00094">OmniEvents::daemon</a>, and <a class="el" href="a00150.html#l00143">OmniEvents::DaemonImpl::pidfile()</a>.
<p>
Referenced by <a class="el" href="a00169.html#l00065">main()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a6"></a><!-- doxytag: member="OmniEvents::Daemon::runningOk" ref="a6" args="()" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void OmniEvents::Daemon::runningOk           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Called to signal that all startup operations have completed OK. 
<p>

<p>
Definition at line <a class="el" href="a00150.html#l00111">111</a> of file <a class="el" href="a00150.html">daemon_unix.cc</a>.
<p>
References <a class="el" href="a00150.html#l00094">OmniEvents::daemon</a>, and <a class="el" href="a00150.html#l00215">OmniEvents::DaemonImpl::runningOk()</a>.
<p>
Referenced by <a class="el" href="a00169.html#l00065">main()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a2"></a><!-- doxytag: member="OmniEvents::Daemon::tracefile" ref="a2" args="(const char *val)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void OmniEvents::Daemon::tracefile           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>val</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set _tracefile. 
<p>

<p>
Definition at line <a class="el" href="a00150.html#l00107">107</a> of file <a class="el" href="a00150.html">daemon_unix.cc</a>.
<p>
References <a class="el" href="a00150.html#l00094">OmniEvents::daemon</a>, and <a class="el" href="a00150.html#l00131">OmniEvents::DaemonImpl::tracefile()</a>.
<p>
Referenced by <a class="el" href="a00169.html#l00065">main()</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a00149.html">daemon.h</a><li><a class="el" href="a00150.html">daemon_unix.cc</a><li><a class="el" href="a00152.html">daemon_windows.cc</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Aug 26 20:56:16 2005 for OmniEvents by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.3-20050530 </small></address>
</body>
</html>