Version: 8.3.0
CosNotifyShorthands.h
Go to the documentation of this file.
1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 
23 // SALOME Notification : wrapping of Notification service services
24 // File : CosNotifyShorthands.h
25 // Module : SALOME
26 //
27 #ifndef _COS_NOTIFY_H_
28 #define _COS_NOTIFY_H_
29 
30 #include <SALOMEconfig.h>
31 
32 #ifndef COS_USES_BOA
33 #include <COS/TimeBase.hh>
34 #include <COS/CosNotification.hh>
35 #include <COS/CosNotifyComm.hh>
36 #include <COS/CosNotifyChannelAdmin.hh>
37 #include <COS/CosNotifyFilter.hh>
38 #else
39 #include <COS/BOA/TimeBase.hh>
40 #include <COS/BOA/CosNotification.hh>
41 #include <COS/BOA/CosNotifyComm.hh>
42 #include <COS/BOA/CosNotifyChannelAdmin.hh>
43 #include <COS/BOA/CosNotifyFilter.hh>
44 #endif
45 
46 #define CosN CosNotification
47 #define CosNC CosNotifyComm
48 #define CosNA CosNotifyChannelAdmin
49 #define CosNF CosNotifyFilter
50 
51 // XXX TODO: need typedefs and defines for
52 // XXX compilers that do not support M::x syntax
53 
54 typedef CosN::AdminProperties CosN_AdminProperties;
55 typedef CosN::AdminPropertiesAdmin CosN_AdminPropertiesAdmin;
56 #define CosN_AnyOrder CosN::AnyOrder
57 #define CosN_BAD_PROPERTY CosN::BAD_PROPERTY
58 #define CosN_BAD_TYPE CosN::BAD_TYPE
59 #define CosN_BAD_VALUE CosN::BAD_VALUE
60 #define CosN_BestEffort CosN::BestEffort
61 #define CosN_ConnectionReliability CosN::ConnectionReliability
62 #define CosN_DeadlineOrder CosN::DeadlineOrder
63 #define CosN_DefaultPriority CosN::DefaultPriority
64 #define CosN_DiscardPolicy CosN::DiscardPolicy
65 typedef CosN::EventBatch CosN_EventBatch;
66 #define CosN_EventReliability CosN::EventReliability
67 typedef CosN::EventType CosN_EventType;
68 typedef CosN::EventTypeSeq CosN_EventTypeSeq;
69 #define CosN_FifoOrder CosN::FifoOrder
70 #define CosN_HighestPriority CosN::HighestPriority
71 #define CosN_LifoOrder CosN::LifoOrder
72 #define CosN_LowestPriority CosN::LowestPriority
73 #define CosN_MaxEventsPerConsumer CosN::MaxEventsPerConsumer
74 #define CosN_MaximumBatchSize CosN::MaximumBatchSize
75 #define CosN_NamedPropertyRangeSeq CosN::NamedPropertyRangeSeq
76 #define CosN_OrderPolicy CosN::OrderPolicy
77 #define CosN_PacingInterval CosN::PacingInterval
78 #define CosN_Persistent CosN::Persistent
79 #define CosN_Priority CosN::Priority
80 #define CosN_PriorityOrder CosN::PriorityOrder
81 typedef CosN::Property CosN_Property;
82 typedef CosN::PropertyError CosN_PropertyError;
83 typedef CosN::PropertyErrorSeq CosN_PropertyErrorSeq;
84 typedef CosN::PropertyRange CosN_PropertyRange;
85 typedef CosN::PropertySeq CosN_PropertySeq;
86 typedef CosN::QoSAdmin CosN_QoSAdmin;
87 typedef CosN::QoSError_code CosN_QoSError_code;
88 typedef CosN::QoSProperties CosN_QoSProperties;
89 #define CosN_RejectNewEvents CosN::RejectNewEvents
90 #define CosN_StartTimeSupported CosN::StartTimeSupported
91 #define CosN_StopTimeSupported CosN::StopTimeSupported
92 typedef CosN::StructuredEvent CosN_StructuredEvent;
93 #define CosN_Timeout CosN::Timeout
94 #define CosN_UNAVAILABLE_PROPERTY CosN::UNAVAILABLE_PROPERTY
95 #define CosN_UNAVAILABLE_VALUE CosN::UNAVAILABLE_VALUE
96 #define CosN_UNSUPPORTED_PROPERTY CosN::UNSUPPORTED_PROPERTY
97 #define CosN_UNSUPPORTED_VALUE CosN::UNSUPPORTED_VALUE
98 typedef CosN::UnsupportedAdmin CosN_UnsupportedAdmin;
99 typedef CosN::UnsupportedQoS CosN_UnsupportedQoS;
100 
101 #define CosNA_ALL_NOW_UPDATES_OFF CosNA::ALL_NOW_UPDATES_OFF
102 #define CosNA_ALL_NOW_UPDATES_ON CosNA::ALL_NOW_UPDATES_ON
103 #define CosNA_AND_OP CosNA::AND_OP
104 #define CosNA_ANY_EVENT CosNA::ANY_EVENT
105 typedef CosNA::AdminID CosNA_AdminID;
106 typedef CosNA::AdminIDSeq CosNA_AdminIDSeq;
107 typedef CosNA::AdminLimit CosNA_AdminLimit;
108 typedef CosNA::AdminLimitExceeded CosNA_AdminLimitExceeded;
109 typedef CosNA::AdminNotFound CosNA_AdminNotFound;
110 typedef CosNA::ChannelID CosNA_ChannelID;
111 typedef CosNA::ChannelIDSeq CosNA_ChannelIDSeq;
112 typedef CosNA::ChannelNotFound CosNA_ChannelNotFound;
113 typedef CosNA::ClientType CosNA_ClientType;
114 typedef CosNA::ConnectionAlreadyActive CosNA_ConnectionAlreadyActive;
115 typedef CosNA::ConnectionAlreadyInactive CosNA_ConnectionAlreadyInactive;
116 typedef CosNA::ConsumerAdmin CosNA_ConsumerAdmin;
117 typedef CosNA::ConsumerAdmin_ptr CosNA_ConsumerAdmin_ptr;
118 typedef CosNA::ConsumerAdmin_var CosNA_ConsumerAdmin_var;
119 typedef CosNA::EventChannel CosNA_EventChannel;
120 typedef CosNA::EventChannelFactory CosNA_EventChannelFactory;
121 typedef CosNA::EventChannelFactory_ptr CosNA_EventChannelFactory_ptr;
122 typedef CosNA::EventChannelFactory_var CosNA_EventChannelFactory_var;
123 typedef CosNA::EventChannel_ptr CosNA_EventChannel_ptr;
124 typedef CosNA::EventChannel_var CosNA_EventChannel_var;
125 typedef CosNA::InterFilterGroupOperator CosNA_InterFilterGroupOperator;
126 #define CosNA_NONE_NOW_UPDATES_OFF CosNA::NONE_NOW_UPDATES_OFF
127 #define CosNA_NONE_NOW_UPDATES_ON CosNA::NONE_NOW_UPDATES_ON
128 typedef CosNA::NotConnected CosNA_NotConnected;
129 #define CosNA_OR_OP CosNA::OR_OP
130 typedef CosNA::ObtainInfoMode CosNA_ObtainInfoMode;
131 #define CosNA_PULL_ANY CosNA::PULL_ANY
132 #define CosNA_PULL_SEQUENCE CosNA::PULL_SEQUENCE
133 #define CosNA_PULL_STRUCTURED CosNA::PULL_STRUCTURED
134 #define CosNA_PUSH_ANY CosNA::PUSH_ANY
135 #define CosNA_PUSH_SEQUENCE CosNA::PUSH_SEQUENCE
136 #define CosNA_PUSH_STRUCTURED CosNA::PUSH_STRUCTURED
137 #define CosNA_PUSH_TYPED CosNA::PUSH_TYPED
138 #define CosNA_PULL_TYPED CosNA::PULL_TYPED
139 typedef CosNA::ProxyConsumer CosNA_ProxyConsumer;
140 typedef CosNA::ProxyConsumer_ptr CosNA_ProxyConsumer_ptr;
141 typedef CosNA::ProxyConsumer_var CosNA_ProxyConsumer_var;
142 typedef CosNA::ProxyID CosNA_ProxyID;
143 typedef CosNA::ProxyIDSeq CosNA_ProxyIDSeq;
144 typedef CosNA::ProxyNotFound CosNA_ProxyNotFound;
145 typedef CosNA::ProxyPullConsumer CosNA_ProxyPullConsumer;
146 typedef CosNA::ProxyPullConsumer_ptr CosNA_ProxyPullConsumer_ptr;
147 typedef CosNA::ProxyPullConsumer_var CosNA_ProxyPullConsumer_var;
148 typedef CosNA::ProxyPullSupplier CosNA_ProxyPullSupplier;
149 typedef CosNA::ProxyPullSupplier_ptr CosNA_ProxyPullSupplier_ptr;
150 typedef CosNA::ProxyPullSupplier_var CosNA_ProxyPullSupplier_var;
151 typedef CosNA::ProxyPushConsumer CosNA_ProxyPushConsumer;
152 typedef CosNA::ProxyPushConsumer_ptr CosNA_ProxyPushConsumer_ptr;
153 typedef CosNA::ProxyPushConsumer_var CosNA_ProxyPushConsumer_var;
154 typedef CosNA::ProxyPushSupplier CosNA_ProxyPushSupplier;
155 typedef CosNA::ProxyPushSupplier_ptr CosNA_ProxyPushSupplier_ptr;
156 typedef CosNA::ProxyPushSupplier_var CosNA_ProxyPushSupplier_var;
157 typedef CosNA::ProxySupplier CosNA_ProxySupplier;
158 typedef CosNA::ProxySupplier_ptr CosNA_ProxySupplier_ptr;
159 typedef CosNA::ProxySupplier_var CosNA_ProxySupplier_var;
160 typedef CosNA::ProxyType CosNA_ProxyType;
161 #define CosNA_SEQUENCE_EVENT CosNA::SEQUENCE_EVENT
162 #define CosNA_STRUCTURED_EVENT CosNA::STRUCTURED_EVENT
163 typedef CosNA::SequenceProxyPullConsumer CosNA_SequenceProxyPullConsumer;
164 typedef CosNA::SequenceProxyPullConsumer_ptr CosNA_SequenceProxyPullConsumer_ptr;
165 typedef CosNA::SequenceProxyPullConsumer_var CosNA_SequenceProxyPullConsumer_var;
166 typedef CosNA::SequenceProxyPullSupplier CosNA_SequenceProxyPullSupplier;
167 typedef CosNA::SequenceProxyPullSupplier_ptr CosNA_SequenceProxyPullSupplier_ptr;
168 typedef CosNA::SequenceProxyPullSupplier_var CosNA_SequenceProxyPullSupplier_var;
169 typedef CosNA::SequenceProxyPushConsumer CosNA_SequenceProxyPushConsumer;
170 typedef CosNA::SequenceProxyPushConsumer_ptr CosNA_SequenceProxyPushConsumer_ptr;
171 typedef CosNA::SequenceProxyPushConsumer_var CosNA_SequenceProxyPushConsumer_var;
172 typedef CosNA::SequenceProxyPushSupplier CosNA_SequenceProxyPushSupplier;
173 typedef CosNA::SequenceProxyPushSupplier_ptr CosNA_SequenceProxyPushSupplier_ptr;
174 typedef CosNA::SequenceProxyPushSupplier_var CosNA_SequenceProxyPushSupplier_var;
175 typedef CosNA::StructuredProxyPullConsumer CosNA_StructuredProxyPullConsumer;
176 typedef CosNA::StructuredProxyPullConsumer_ptr CosNA_StructuredProxyPullConsumer_ptr;
177 typedef CosNA::StructuredProxyPullConsumer_var CosNA_StructuredProxyPullConsumer_var;
178 typedef CosNA::StructuredProxyPullSupplier CosNA_StructuredProxyPullSupplier;
179 typedef CosNA::StructuredProxyPullSupplier_ptr CosNA_StructuredProxyPullSupplier_ptr;
180 typedef CosNA::StructuredProxyPullSupplier_var CosNA_StructuredProxyPullSupplier_var;
181 typedef CosNA::StructuredProxyPushConsumer CosNA_StructuredProxyPushConsumer;
182 typedef CosNA::StructuredProxyPushConsumer_ptr CosNA_StructuredProxyPushConsumer_ptr;
183 typedef CosNA::StructuredProxyPushConsumer_var CosNA_StructuredProxyPushConsumer_var;
184 typedef CosNA::StructuredProxyPushSupplier CosNA_StructuredProxyPushSupplier;
185 typedef CosNA::StructuredProxyPushSupplier_ptr CosNA_StructuredProxyPushSupplier_ptr;
186 typedef CosNA::StructuredProxyPushSupplier_var CosNA_StructuredProxyPushSupplier_var;
187 typedef CosNA::SupplierAdmin CosNA_SupplierAdmin;
188 typedef CosNA::SupplierAdmin_ptr CosNA_SupplierAdmin_ptr;
189 typedef CosNA::SupplierAdmin_var CosNA_SupplierAdmin_var;
190 
191 typedef CosNC::InvalidEventType CosNC_InvalidEventType;
192 typedef CosNC::NotifyPublish CosNC_NotifyPublish;
193 typedef CosNC::NotifyPublish_ptr CosNC_NotifyPublish_ptr;
194 typedef CosNC::NotifyPublish_var CosNC_NotifyPublish_var;
195 typedef CosNC::NotifySubscribe CosNC_NotifySubscribe;
196 typedef CosNC::NotifySubscribe_ptr CosNC_NotifySubscribe_ptr;
197 typedef CosNC::NotifySubscribe_var CosNC_NotifySubscribe_var;
198 typedef CosNC::PullConsumer CosNC_PullConsumer;
199 typedef CosNC::PullConsumer_ptr CosNC_PullConsumer_ptr;
200 typedef CosNC::PullConsumer_var CosNC_PullConsumer_var;
201 typedef CosNC::PullSupplier CosNC_PullSupplier;
202 typedef CosNC::PullSupplier_ptr CosNC_PullSupplier_ptr;
203 typedef CosNC::PullSupplier_var CosNC_PullSupplier_var;
204 typedef CosNC::PushConsumer CosNC_PushConsumer;
205 typedef CosNC::PushConsumer_ptr CosNC_PushConsumer_ptr;
206 typedef CosNC::PushConsumer_var CosNC_PushConsumer_var;
207 typedef CosNC::PushSupplier CosNC_PushSupplier;
208 typedef CosNC::PushSupplier_ptr CosNC_PushSupplier_ptr;
209 typedef CosNC::PushSupplier_var CosNC_PushSupplier_var;
210 typedef CosNC::SequencePullConsumer CosNC_SequencePullConsumer;
211 typedef CosNC::SequencePullConsumer_ptr CosNC_SequencePullConsumer_ptr;
212 typedef CosNC::SequencePullConsumer_var CosNC_SequencePullConsumer_var;
213 typedef CosNC::SequencePullSupplier CosNC_SequencePullSupplier;
214 typedef CosNC::SequencePullSupplier_ptr CosNC_SequencePullSupplier_ptr;
215 typedef CosNC::SequencePullSupplier_var CosNC_SequencePullSupplier_var;
216 typedef CosNC::SequencePushConsumer CosNC_SequencePushConsumer;
217 typedef CosNC::SequencePushConsumer_ptr CosNC_SequencePushConsumer_ptr;
218 typedef CosNC::SequencePushConsumer_var CosNC_SequencePushConsumer_var;
219 typedef CosNC::SequencePushSupplier CosNC_SequencePushSupplier;
220 typedef CosNC::SequencePushSupplier_ptr CosNC_SequencePushSupplier_ptr;
221 typedef CosNC::SequencePushSupplier_var CosNC_SequencePushSupplier_var;
222 typedef CosNC::StructuredPullConsumer CosNC_StructuredPullConsumer;
223 typedef CosNC::StructuredPullConsumer_ptr CosNC_StructuredPullConsumer_ptr;
224 typedef CosNC::StructuredPullConsumer_var CosNC_StructuredPullConsumer_var;
225 typedef CosNC::StructuredPullSupplier CosNC_StructuredPullSupplier;
226 typedef CosNC::StructuredPullSupplier_ptr CosNC_StructuredPullSupplier_ptr;
227 typedef CosNC::StructuredPullSupplier_var CosNC_StructuredPullSupplier_var;
228 typedef CosNC::StructuredPushConsumer CosNC_StructuredPushConsumer;
229 typedef CosNC::StructuredPushConsumer_ptr CosNC_StructuredPushConsumer_ptr;
230 typedef CosNC::StructuredPushConsumer_var CosNC_StructuredPushConsumer_var;
231 typedef CosNC::StructuredPushSupplier CosNC_StructuredPushSupplier;
232 typedef CosNC::StructuredPushSupplier_ptr CosNC_StructuredPushSupplier_ptr;
233 typedef CosNC::StructuredPushSupplier_var CosNC_StructuredPushSupplier_var;
234 
235 typedef CosNF::CallbackID CosNF_CallbackID;
236 typedef CosNF::CallbackIDSeq CosNF_CallbackIDSeq;
237 typedef CosNF::ConstraintExp CosNF_ConstraintExp;
238 typedef CosNF::ConstraintExpSeq CosNF_ConstraintExpSeq;
239 typedef CosNF::ConstraintID CosNF_ConstraintID;
240 typedef CosNF::ConstraintIDSeq CosNF_ConstraintIDSeq;
241 typedef CosNF::ConstraintInfoSeq CosNF_ConstraintInfoSeq;
242 typedef CosNF::ConstraintInfoSeq_var CosNF_ConstraintInfoSeq_var;
243 typedef CosNF::ConstraintNotFound CosNF_ConstraintNotFound;
244 typedef CosNF::Filter CosNF_Filter;
245 typedef CosNF::FilterAdmin CosNF_FilterAdmin;
246 typedef CosNF::FilterAdmin_ptr CosNF_FilterAdmin_ptr;
247 typedef CosNF::FilterFactory CosNF_FilterFactory;
248 typedef CosNF::FilterFactory_ptr CosNF_FilterFactory_ptr;
249 typedef CosNF::FilterFactory_var CosNF_FilterFactory_var;
250 typedef CosNF::FilterID CosNF_FilterID;
251 typedef CosNF::FilterIDSeq CosNF_FilterIDSeq;
252 typedef CosNF::FilterNotFound CosNF_FilterNotFound;
253 typedef CosNF::Filter_ptr CosNF_Filter_ptr;
254 typedef CosNF::Filter_var CosNF_Filter_var;
255 typedef CosNF::InvalidConstraint CosNF_InvalidConstraint;
256 typedef CosNF::InvalidGrammar CosNF_InvalidGrammar;
257 typedef CosNF::MappingConstraintInfoSeq CosNF_MappingConstraintInfoSeq;
258 typedef CosNF::MappingConstraintPairSeq CosNF_MappingConstraintPairSeq;
259 typedef CosNF::MappingFilter CosNF_MappingFilter;
260 typedef CosNF::MappingFilter_ptr CosNF_MappingFilter_ptr;
261 typedef CosNF::MappingFilter_var CosNF_MappingFilter_var;
262 
263 #endif
264