File: a00155.html

package info (click to toggle)
omnievents 2.6.1-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,228 kB
  • ctags: 2,538
  • sloc: cpp: 7,346; sh: 2,568; python: 2,171; xml: 2,057; java: 1,407; makefile: 304; ansic: 9
file content (110 lines) | stat: -rw-r--r-- 7,881 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>EventChannelFactory.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.15 -->
<center>
<a class="qindex" href="main.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>EventChannelFactory.h</h1><a href="a00095.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">// -*- Mode: C++; -*-</font>
00002 <font class="comment">//                            Package   : omniEvents</font>
00003 <font class="comment">// EventChannelFactory_i.h    Created   : 1/4/98</font>
00004 <font class="comment">//                            Author    : Paul Nader (pwn)</font>
00005 <font class="comment">//</font>
00006 <font class="comment">//    Copyright (C) 1998 Paul Nader.</font>
00007 <font class="comment">//</font>
00008 <font class="comment">//    This file is part of the omniEvents application.</font>
00009 <font class="comment">//</font>
00010 <font class="comment">//    omniEvents is free software; you can redistribute it and/or</font>
00011 <font class="comment">//    modify it under the terms of the GNU Lesser General Public</font>
00012 <font class="comment">//    License as published by the Free Software Foundation; either</font>
00013 <font class="comment">//    version 2.1 of the License, or (at your option) any later version.</font>
00014 <font class="comment">//</font>
00015 <font class="comment">//    omniEvents is distributed in the hope that it will be useful,</font>
00016 <font class="comment">//    but WITHOUT ANY WARRANTY; without even the implied warranty of</font>
00017 <font class="comment">//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</font>
00018 <font class="comment">//    Lesser General Public License for more details.</font>
00019 <font class="comment">//</font>
00020 <font class="comment">//    You should have received a copy of the GNU Lesser General Public</font>
00021 <font class="comment">//    License along with this library; if not, write to the Free Software</font>
00022 <font class="comment">//    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</font>
00023 <font class="comment">//</font>
00024 
00025 <font class="preprocessor">#ifndef OMNIEVENTS_EVENTCHANNELFACTORY_H</font>
00026 <font class="preprocessor"></font><font class="preprocessor">#define OMNIEVENTS_EVENTCHANNELFACTORY_H</font>
00027 <font class="preprocessor"></font>
00028 <font class="preprocessor">#ifdef HAVE_CONFIG_H</font>
00029 <font class="preprocessor"></font><font class="preprocessor">#  include "<a class="code" href="a00082.html">config.h</a>"</font>
00030 <font class="preprocessor">#endif</font>
00031 <font class="preprocessor"></font>
00032 <font class="preprocessor">#ifdef HAVE_IOSTREAM</font>
00033 <font class="preprocessor"></font><font class="preprocessor">#  include &lt;iostream&gt;</font>
00034 <font class="preprocessor">#else</font>
00035 <font class="preprocessor"></font><font class="preprocessor">#  include &lt;iostream.h&gt;</font>
00036 <font class="preprocessor">#endif</font>
00037 <font class="preprocessor"></font>
00038 <font class="preprocessor">#include "omniEvents.hh"</font>
00039 <font class="preprocessor">#include "<a class="code" href="a00135.html">Servant.h</a>"</font>
00040 <font class="preprocessor">#include "<a class="code" href="a00093.html">EventChannel.h</a>"</font>
00041 
00042 <font class="preprocessor">#ifdef HAVE_STD_STL</font>
00043 <font class="preprocessor"></font><font class="keyword">using</font> <font class="keyword">namespace </font>std;
00044 <font class="preprocessor">#endif</font>
00045 <font class="preprocessor"></font>
00046 <font class="keyword">namespace </font>OmniEvents {
00047 
00048 <font class="keyword">class </font>PersistNode;
00049 
00050 <font class="comment">// Event Channel Factory</font>
00051 
<a name="l00052"></a><a class="code" href="a00047.html">00052</a> <font class="keyword">class </font><a class="code" href="a00047.html">EventChannelFactory_i</a> :
00053   <font class="keyword">public</font> <font class="keyword">virtual</font> POA_omniEvents::EventChannelFactory,
00054   <font class="keyword">public</font> <a class="code" href="a00073.html">Servant</a>
00055 {
00056 <font class="keyword">public</font>: <font class="comment">// CORBA METHODS</font>
00062 <font class="comment"></font>  CORBA::Boolean <a class="code" href="a00047.html#a0">supports</a>(<font class="keyword">const</font> CosLifeCycle::Key&amp; k);
00063   CORBA::Object_ptr <a class="code" href="a00047.html#a1">create_object</a>(
00064     <font class="keyword">const</font> CosLifeCycle::Key &amp;k,
00065     <font class="keyword">const</font> CosLifeCycle::Criteria &amp;the_criteria
00066   );
00067   
<a name="l00069"></a><a class="code" href="a00047.html#a2">00069</a>   CORBA::Boolean <a class="code" href="a00047.html#a2">is_alive</a>() { <font class="keywordflow">return</font> 1; }
00070   
00072   CosEventChannelAdmin::EventChannel_ptr <a class="code" href="a00047.html#a3">create_channel</a>(
00073     <font class="keyword">const</font> <font class="keywordtype">char</font>* channel_name
00074   );
00075 
00077   CosEventChannelAdmin::EventChannel_ptr <a class="code" href="a00047.html#a4">join_channel</a>(
00078     <font class="keyword">const</font> <font class="keywordtype">char</font>* channel_name
00079   );
00080    
00081 
00082 <font class="keyword">public</font>:
00084   <a class="code" href="a00047.html#a5">EventChannelFactory_i</a>(<font class="keyword">const</font> PersistNode&amp; node);
00085 
00089   PersistNode* <a class="code" href="a00047.html#a6">parseCriteria</a>(<font class="keyword">const</font> CosLifeCycle::Criteria&amp; criteria) <font class="keyword">const</font>;
00090   
00094   CosLifeCycle::Criteria <a class="code" href="a00047.html#a7">extract</a>(
00095     <font class="keyword">const</font> <font class="keywordtype">char</font>*                   name,
00096     <font class="keyword">const</font> CosLifeCycle::Criteria&amp; from
00097   ) <font class="keyword">const</font>;
00098 
00099   <font class="keywordtype">void</font> <a class="code" href="a00047.html#a8">output</a>(ostream&amp; os);
00100 
00101 <font class="keyword">private</font>:
<a name="l00105"></a><a class="code" href="a00047.html#o0">00105</a>   <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>      <a class="code" href="a00047.html#o0">_port</a>;
00106 
<a name="l00110"></a><a class="code" href="a00047.html#o1">00110</a>   string            <a class="code" href="a00047.html#o1">_endPointNoListen</a>;
00111 
<a name="l00112"></a><a class="code" href="a00047.html#o2">00112</a>   <a class="code" href="a00048.html">EventChannelStore</a> <a class="code" href="a00047.html#o2">_channels</a>;
00113 };
00114 
00115 }; <font class="comment">// namespace OmniEvents</font>
00116 
00117 <font class="preprocessor">#endif // OMNIEVENTS_EVENTCHANNELFACTORY_H</font>
</pre></div><hr><address align="right"><small>Generated on Fri Nov 19 17:42:20 2004 for OmniEvents by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.15 </small></address>
</body>
</html>