Back to index

salome-kernel  6.5.0
CosNotifyShorthands.h
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  SALOME Notification : wrapping of Notification service services
00024 //  File   : CosNotifyShorthands.h
00025 //  Module : SALOME
00026 //
00027 #ifndef _COS_NOTIFY_H_
00028 #define _COS_NOTIFY_H_
00029 
00030 #include <SALOMEconfig.h>
00031 
00032 #ifndef COS_USES_BOA
00033 #include <COS/TimeBase.hh>
00034 #include <COS/CosNotification.hh>
00035 #include <COS/CosNotifyComm.hh>
00036 #include <COS/CosNotifyChannelAdmin.hh>
00037 #include <COS/CosNotifyFilter.hh>
00038 #else
00039 #include <COS/BOA/TimeBase.hh>
00040 #include <COS/BOA/CosNotification.hh>
00041 #include <COS/BOA/CosNotifyComm.hh>
00042 #include <COS/BOA/CosNotifyChannelAdmin.hh>
00043 #include <COS/BOA/CosNotifyFilter.hh>
00044 #endif
00045 
00046 #define CosN   CosNotification
00047 #define CosNC  CosNotifyComm
00048 #define CosNA  CosNotifyChannelAdmin
00049 #define CosNF  CosNotifyFilter
00050 
00051 // XXX TODO: need typedefs and defines for
00052 // XXX       compilers that do not support M::x syntax
00053 
00054 typedef CosN::AdminProperties                   CosN_AdminProperties;
00055 typedef CosN::AdminPropertiesAdmin              CosN_AdminPropertiesAdmin;
00056 #define CosN_AnyOrder                           CosN::AnyOrder
00057 #define CosN_BAD_PROPERTY                       CosN::BAD_PROPERTY
00058 #define CosN_BAD_TYPE                           CosN::BAD_TYPE
00059 #define CosN_BAD_VALUE                          CosN::BAD_VALUE
00060 #define CosN_BestEffort                         CosN::BestEffort
00061 #define CosN_ConnectionReliability              CosN::ConnectionReliability
00062 #define CosN_DeadlineOrder                      CosN::DeadlineOrder
00063 #define CosN_DefaultPriority                    CosN::DefaultPriority
00064 #define CosN_DiscardPolicy                      CosN::DiscardPolicy
00065 typedef CosN::EventBatch                        CosN_EventBatch;
00066 #define CosN_EventReliability                   CosN::EventReliability
00067 typedef CosN::EventType                         CosN_EventType;
00068 typedef CosN::EventTypeSeq                      CosN_EventTypeSeq;
00069 #define CosN_FifoOrder                          CosN::FifoOrder
00070 #define CosN_HighestPriority                    CosN::HighestPriority
00071 #define CosN_LifoOrder                          CosN::LifoOrder
00072 #define CosN_LowestPriority                     CosN::LowestPriority
00073 #define CosN_MaxEventsPerConsumer               CosN::MaxEventsPerConsumer
00074 #define CosN_MaximumBatchSize                   CosN::MaximumBatchSize
00075 #define CosN_NamedPropertyRangeSeq              CosN::NamedPropertyRangeSeq
00076 #define CosN_OrderPolicy                        CosN::OrderPolicy
00077 #define CosN_PacingInterval                     CosN::PacingInterval
00078 #define CosN_Persistent                         CosN::Persistent
00079 #define CosN_Priority                           CosN::Priority
00080 #define CosN_PriorityOrder                      CosN::PriorityOrder
00081 typedef CosN::Property                          CosN_Property;
00082 typedef CosN::PropertyError                     CosN_PropertyError;
00083 typedef CosN::PropertyErrorSeq                  CosN_PropertyErrorSeq;
00084 typedef CosN::PropertyRange                     CosN_PropertyRange;
00085 typedef CosN::PropertySeq                       CosN_PropertySeq;
00086 typedef CosN::QoSAdmin                          CosN_QoSAdmin;
00087 typedef CosN::QoSError_code                     CosN_QoSError_code;
00088 typedef CosN::QoSProperties                     CosN_QoSProperties;
00089 #define CosN_RejectNewEvents                    CosN::RejectNewEvents
00090 #define CosN_StartTimeSupported                 CosN::StartTimeSupported
00091 #define CosN_StopTimeSupported                  CosN::StopTimeSupported
00092 typedef CosN::StructuredEvent                   CosN_StructuredEvent;
00093 #define CosN_Timeout                            CosN::Timeout
00094 #define CosN_UNAVAILABLE_PROPERTY               CosN::UNAVAILABLE_PROPERTY
00095 #define CosN_UNAVAILABLE_VALUE                  CosN::UNAVAILABLE_VALUE
00096 #define CosN_UNSUPPORTED_PROPERTY               CosN::UNSUPPORTED_PROPERTY
00097 #define CosN_UNSUPPORTED_VALUE                  CosN::UNSUPPORTED_VALUE
00098 typedef CosN::UnsupportedAdmin                  CosN_UnsupportedAdmin;
00099 typedef CosN::UnsupportedQoS                    CosN_UnsupportedQoS;
00100 
00101 #define CosNA_ALL_NOW_UPDATES_OFF               CosNA::ALL_NOW_UPDATES_OFF
00102 #define CosNA_ALL_NOW_UPDATES_ON                CosNA::ALL_NOW_UPDATES_ON
00103 #define CosNA_AND_OP                            CosNA::AND_OP
00104 #define CosNA_ANY_EVENT                         CosNA::ANY_EVENT
00105 typedef CosNA::AdminID                          CosNA_AdminID;
00106 typedef CosNA::AdminIDSeq                       CosNA_AdminIDSeq;
00107 typedef CosNA::AdminLimit                       CosNA_AdminLimit;
00108 typedef CosNA::AdminLimitExceeded               CosNA_AdminLimitExceeded;
00109 typedef CosNA::AdminNotFound                    CosNA_AdminNotFound;
00110 typedef CosNA::ChannelID                        CosNA_ChannelID;
00111 typedef CosNA::ChannelIDSeq                     CosNA_ChannelIDSeq;
00112 typedef CosNA::ChannelNotFound                  CosNA_ChannelNotFound;
00113 typedef CosNA::ClientType                       CosNA_ClientType;
00114 typedef CosNA::ConnectionAlreadyActive          CosNA_ConnectionAlreadyActive;
00115 typedef CosNA::ConnectionAlreadyInactive        CosNA_ConnectionAlreadyInactive;
00116 typedef CosNA::ConsumerAdmin                    CosNA_ConsumerAdmin;
00117 typedef CosNA::ConsumerAdmin_ptr                CosNA_ConsumerAdmin_ptr;
00118 typedef CosNA::ConsumerAdmin_var                CosNA_ConsumerAdmin_var;
00119 typedef CosNA::EventChannel                     CosNA_EventChannel;
00120 typedef CosNA::EventChannelFactory              CosNA_EventChannelFactory;
00121 typedef CosNA::EventChannelFactory_ptr          CosNA_EventChannelFactory_ptr;
00122 typedef CosNA::EventChannelFactory_var          CosNA_EventChannelFactory_var;
00123 typedef CosNA::EventChannel_ptr                 CosNA_EventChannel_ptr;
00124 typedef CosNA::EventChannel_var                 CosNA_EventChannel_var;
00125 typedef CosNA::InterFilterGroupOperator         CosNA_InterFilterGroupOperator;
00126 #define CosNA_NONE_NOW_UPDATES_OFF              CosNA::NONE_NOW_UPDATES_OFF
00127 #define CosNA_NONE_NOW_UPDATES_ON               CosNA::NONE_NOW_UPDATES_ON
00128 typedef CosNA::NotConnected                     CosNA_NotConnected;
00129 #define CosNA_OR_OP                             CosNA::OR_OP
00130 typedef CosNA::ObtainInfoMode                   CosNA_ObtainInfoMode;
00131 #define CosNA_PULL_ANY                          CosNA::PULL_ANY
00132 #define CosNA_PULL_SEQUENCE                     CosNA::PULL_SEQUENCE
00133 #define CosNA_PULL_STRUCTURED                   CosNA::PULL_STRUCTURED
00134 #define CosNA_PUSH_ANY                          CosNA::PUSH_ANY
00135 #define CosNA_PUSH_SEQUENCE                     CosNA::PUSH_SEQUENCE
00136 #define CosNA_PUSH_STRUCTURED                   CosNA::PUSH_STRUCTURED
00137 #define CosNA_PUSH_TYPED                        CosNA::PUSH_TYPED
00138 #define CosNA_PULL_TYPED                        CosNA::PULL_TYPED
00139 typedef CosNA::ProxyConsumer                    CosNA_ProxyConsumer;
00140 typedef CosNA::ProxyConsumer_ptr                CosNA_ProxyConsumer_ptr;
00141 typedef CosNA::ProxyConsumer_var                CosNA_ProxyConsumer_var;
00142 typedef CosNA::ProxyID                          CosNA_ProxyID;
00143 typedef CosNA::ProxyIDSeq                       CosNA_ProxyIDSeq;
00144 typedef CosNA::ProxyNotFound                    CosNA_ProxyNotFound;
00145 typedef CosNA::ProxyPullConsumer                CosNA_ProxyPullConsumer;
00146 typedef CosNA::ProxyPullConsumer_ptr            CosNA_ProxyPullConsumer_ptr;
00147 typedef CosNA::ProxyPullConsumer_var            CosNA_ProxyPullConsumer_var;
00148 typedef CosNA::ProxyPullSupplier                CosNA_ProxyPullSupplier;
00149 typedef CosNA::ProxyPullSupplier_ptr            CosNA_ProxyPullSupplier_ptr;
00150 typedef CosNA::ProxyPullSupplier_var            CosNA_ProxyPullSupplier_var;
00151 typedef CosNA::ProxyPushConsumer                CosNA_ProxyPushConsumer;
00152 typedef CosNA::ProxyPushConsumer_ptr            CosNA_ProxyPushConsumer_ptr;
00153 typedef CosNA::ProxyPushConsumer_var            CosNA_ProxyPushConsumer_var;
00154 typedef CosNA::ProxyPushSupplier                CosNA_ProxyPushSupplier;
00155 typedef CosNA::ProxyPushSupplier_ptr            CosNA_ProxyPushSupplier_ptr;
00156 typedef CosNA::ProxyPushSupplier_var            CosNA_ProxyPushSupplier_var;
00157 typedef CosNA::ProxySupplier                    CosNA_ProxySupplier;
00158 typedef CosNA::ProxySupplier_ptr                CosNA_ProxySupplier_ptr;
00159 typedef CosNA::ProxySupplier_var                CosNA_ProxySupplier_var;
00160 typedef CosNA::ProxyType                        CosNA_ProxyType;
00161 #define CosNA_SEQUENCE_EVENT                    CosNA::SEQUENCE_EVENT
00162 #define CosNA_STRUCTURED_EVENT                  CosNA::STRUCTURED_EVENT
00163 typedef CosNA::SequenceProxyPullConsumer        CosNA_SequenceProxyPullConsumer;
00164 typedef CosNA::SequenceProxyPullConsumer_ptr    CosNA_SequenceProxyPullConsumer_ptr;
00165 typedef CosNA::SequenceProxyPullConsumer_var    CosNA_SequenceProxyPullConsumer_var;
00166 typedef CosNA::SequenceProxyPullSupplier        CosNA_SequenceProxyPullSupplier;
00167 typedef CosNA::SequenceProxyPullSupplier_ptr    CosNA_SequenceProxyPullSupplier_ptr;
00168 typedef CosNA::SequenceProxyPullSupplier_var    CosNA_SequenceProxyPullSupplier_var;
00169 typedef CosNA::SequenceProxyPushConsumer        CosNA_SequenceProxyPushConsumer;
00170 typedef CosNA::SequenceProxyPushConsumer_ptr    CosNA_SequenceProxyPushConsumer_ptr;
00171 typedef CosNA::SequenceProxyPushConsumer_var    CosNA_SequenceProxyPushConsumer_var;
00172 typedef CosNA::SequenceProxyPushSupplier        CosNA_SequenceProxyPushSupplier;
00173 typedef CosNA::SequenceProxyPushSupplier_ptr    CosNA_SequenceProxyPushSupplier_ptr;
00174 typedef CosNA::SequenceProxyPushSupplier_var    CosNA_SequenceProxyPushSupplier_var;
00175 typedef CosNA::StructuredProxyPullConsumer      CosNA_StructuredProxyPullConsumer;
00176 typedef CosNA::StructuredProxyPullConsumer_ptr  CosNA_StructuredProxyPullConsumer_ptr;
00177 typedef CosNA::StructuredProxyPullConsumer_var  CosNA_StructuredProxyPullConsumer_var;
00178 typedef CosNA::StructuredProxyPullSupplier      CosNA_StructuredProxyPullSupplier;
00179 typedef CosNA::StructuredProxyPullSupplier_ptr  CosNA_StructuredProxyPullSupplier_ptr;
00180 typedef CosNA::StructuredProxyPullSupplier_var  CosNA_StructuredProxyPullSupplier_var;
00181 typedef CosNA::StructuredProxyPushConsumer      CosNA_StructuredProxyPushConsumer;
00182 typedef CosNA::StructuredProxyPushConsumer_ptr  CosNA_StructuredProxyPushConsumer_ptr;
00183 typedef CosNA::StructuredProxyPushConsumer_var  CosNA_StructuredProxyPushConsumer_var;
00184 typedef CosNA::StructuredProxyPushSupplier      CosNA_StructuredProxyPushSupplier;
00185 typedef CosNA::StructuredProxyPushSupplier_ptr  CosNA_StructuredProxyPushSupplier_ptr;
00186 typedef CosNA::StructuredProxyPushSupplier_var  CosNA_StructuredProxyPushSupplier_var;
00187 typedef CosNA::SupplierAdmin                    CosNA_SupplierAdmin;
00188 typedef CosNA::SupplierAdmin_ptr                CosNA_SupplierAdmin_ptr;
00189 typedef CosNA::SupplierAdmin_var                CosNA_SupplierAdmin_var;
00190 
00191 typedef CosNC::InvalidEventType                 CosNC_InvalidEventType;
00192 typedef CosNC::NotifyPublish                    CosNC_NotifyPublish;
00193 typedef CosNC::NotifyPublish_ptr                CosNC_NotifyPublish_ptr;
00194 typedef CosNC::NotifyPublish_var                CosNC_NotifyPublish_var;
00195 typedef CosNC::NotifySubscribe                  CosNC_NotifySubscribe;
00196 typedef CosNC::NotifySubscribe_ptr              CosNC_NotifySubscribe_ptr;
00197 typedef CosNC::NotifySubscribe_var              CosNC_NotifySubscribe_var;
00198 typedef CosNC::PullConsumer                     CosNC_PullConsumer;
00199 typedef CosNC::PullConsumer_ptr                 CosNC_PullConsumer_ptr;
00200 typedef CosNC::PullConsumer_var                 CosNC_PullConsumer_var;
00201 typedef CosNC::PullSupplier                     CosNC_PullSupplier;
00202 typedef CosNC::PullSupplier_ptr                 CosNC_PullSupplier_ptr;
00203 typedef CosNC::PullSupplier_var                 CosNC_PullSupplier_var;
00204 typedef CosNC::PushConsumer                     CosNC_PushConsumer;
00205 typedef CosNC::PushConsumer_ptr                 CosNC_PushConsumer_ptr;
00206 typedef CosNC::PushConsumer_var                 CosNC_PushConsumer_var;
00207 typedef CosNC::PushSupplier                     CosNC_PushSupplier;
00208 typedef CosNC::PushSupplier_ptr                 CosNC_PushSupplier_ptr;
00209 typedef CosNC::PushSupplier_var                 CosNC_PushSupplier_var;
00210 typedef CosNC::SequencePullConsumer             CosNC_SequencePullConsumer;
00211 typedef CosNC::SequencePullConsumer_ptr         CosNC_SequencePullConsumer_ptr;
00212 typedef CosNC::SequencePullConsumer_var         CosNC_SequencePullConsumer_var;
00213 typedef CosNC::SequencePullSupplier             CosNC_SequencePullSupplier;
00214 typedef CosNC::SequencePullSupplier_ptr         CosNC_SequencePullSupplier_ptr;
00215 typedef CosNC::SequencePullSupplier_var         CosNC_SequencePullSupplier_var;
00216 typedef CosNC::SequencePushConsumer             CosNC_SequencePushConsumer;
00217 typedef CosNC::SequencePushConsumer_ptr         CosNC_SequencePushConsumer_ptr;
00218 typedef CosNC::SequencePushConsumer_var         CosNC_SequencePushConsumer_var;
00219 typedef CosNC::SequencePushSupplier             CosNC_SequencePushSupplier;
00220 typedef CosNC::SequencePushSupplier_ptr         CosNC_SequencePushSupplier_ptr;
00221 typedef CosNC::SequencePushSupplier_var         CosNC_SequencePushSupplier_var;
00222 typedef CosNC::StructuredPullConsumer           CosNC_StructuredPullConsumer;
00223 typedef CosNC::StructuredPullConsumer_ptr       CosNC_StructuredPullConsumer_ptr;
00224 typedef CosNC::StructuredPullConsumer_var       CosNC_StructuredPullConsumer_var;
00225 typedef CosNC::StructuredPullSupplier           CosNC_StructuredPullSupplier;
00226 typedef CosNC::StructuredPullSupplier_ptr       CosNC_StructuredPullSupplier_ptr;
00227 typedef CosNC::StructuredPullSupplier_var       CosNC_StructuredPullSupplier_var;
00228 typedef CosNC::StructuredPushConsumer           CosNC_StructuredPushConsumer;
00229 typedef CosNC::StructuredPushConsumer_ptr       CosNC_StructuredPushConsumer_ptr;
00230 typedef CosNC::StructuredPushConsumer_var       CosNC_StructuredPushConsumer_var;
00231 typedef CosNC::StructuredPushSupplier           CosNC_StructuredPushSupplier;
00232 typedef CosNC::StructuredPushSupplier_ptr       CosNC_StructuredPushSupplier_ptr;
00233 typedef CosNC::StructuredPushSupplier_var       CosNC_StructuredPushSupplier_var;
00234 
00235 typedef CosNF::CallbackID                       CosNF_CallbackID;
00236 typedef CosNF::CallbackIDSeq                    CosNF_CallbackIDSeq;
00237 typedef CosNF::ConstraintExp                    CosNF_ConstraintExp;
00238 typedef CosNF::ConstraintExpSeq                 CosNF_ConstraintExpSeq;
00239 typedef CosNF::ConstraintID                     CosNF_ConstraintID;
00240 typedef CosNF::ConstraintIDSeq                  CosNF_ConstraintIDSeq;
00241 typedef CosNF::ConstraintInfoSeq                CosNF_ConstraintInfoSeq;
00242 typedef CosNF::ConstraintInfoSeq_var            CosNF_ConstraintInfoSeq_var;
00243 typedef CosNF::ConstraintNotFound               CosNF_ConstraintNotFound;
00244 typedef CosNF::Filter                           CosNF_Filter;
00245 typedef CosNF::FilterAdmin                      CosNF_FilterAdmin;
00246 typedef CosNF::FilterAdmin_ptr                  CosNF_FilterAdmin_ptr;
00247 typedef CosNF::FilterFactory                    CosNF_FilterFactory;
00248 typedef CosNF::FilterFactory_ptr                CosNF_FilterFactory_ptr;
00249 typedef CosNF::FilterFactory_var                CosNF_FilterFactory_var;
00250 typedef CosNF::FilterID                         CosNF_FilterID;
00251 typedef CosNF::FilterIDSeq                      CosNF_FilterIDSeq;
00252 typedef CosNF::FilterNotFound                   CosNF_FilterNotFound;
00253 typedef CosNF::Filter_ptr                       CosNF_Filter_ptr;
00254 typedef CosNF::Filter_var                       CosNF_Filter_var;
00255 typedef CosNF::InvalidConstraint                CosNF_InvalidConstraint;
00256 typedef CosNF::InvalidGrammar                   CosNF_InvalidGrammar;
00257 typedef CosNF::MappingConstraintInfoSeq         CosNF_MappingConstraintInfoSeq;
00258 typedef CosNF::MappingConstraintPairSeq         CosNF_MappingConstraintPairSeq;
00259 typedef CosNF::MappingFilter                    CosNF_MappingFilter;
00260 typedef CosNF::MappingFilter_ptr                CosNF_MappingFilter_ptr;
00261 typedef CosNF::MappingFilter_var                CosNF_MappingFilter_var;
00262 
00263 #endif
00264